Struct thor::FragmentChainSender
source · pub struct FragmentChainSender<'a, S: SyncNode + Send> {
sender: FragmentSender<'a, S>,
node: RemoteJormungandr,
last_mempool_check: Option<MemPoolCheck>,
}
Fields§
§sender: FragmentSender<'a, S>
§node: RemoteJormungandr
§last_mempool_check: Option<MemPoolCheck>
Implementations§
source§impl<'a, S: SyncNode + Send> FragmentChainSender<'a, S>
impl<'a, S: SyncNode + Send> FragmentChainSender<'a, S>
pub fn from_with_setup( settings: &SettingsDto, node: RemoteJormungandr, setup: FragmentSenderSetup<'a, S> ) -> Self
pub fn new( block0_hash: Hash, fees: LinearFee, block_date_generator: BlockDateGenerator, setup: FragmentSenderSetup<'a, S>, node: RemoteJormungandr ) -> Self
pub fn send_vote_plan( self, from: &mut Wallet, vote_plan: &VotePlan ) -> Result<Self, FragmentChainSenderError>
pub fn and_verify_is_in_block( self, duration: Duration ) -> Result<Self, FragmentChainSenderError>
fn get_last_mempool_check( &self ) -> Result<MemPoolCheck, FragmentChainSenderError>
pub fn then_wait_for_epoch(self, span: u32) -> Self
pub fn cast_vote( self, from: &mut Wallet, vote_plan: &VotePlan, proposal_index: u8, choice: &Choice ) -> Result<Self, FragmentChainSenderError>
pub fn and_verify_is_rejected( self, duration: Duration ) -> Result<Self, FragmentChainSenderError>
pub fn and_verify_is_rejected_with_message( self, duration: Duration, message: impl Into<String> ) -> Result<Self, FragmentChainSenderError>
pub fn update_wallet(self, wallet: &mut Wallet, f: &dyn Fn(&mut Wallet)) -> Self
pub fn tally_vote( self, from: &mut Wallet, vote_plan: &VotePlan, tally_type: VoteTallyPayload ) -> Result<Self, FragmentChainSenderError>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for FragmentChainSender<'a, S>
impl<'a, S> Send for FragmentChainSender<'a, S>where S: Sync,
impl<'a, S> !Sync for FragmentChainSender<'a, S>
impl<'a, S> Unpin for FragmentChainSender<'a, S>
impl<'a, S> !UnwindSafe for FragmentChainSender<'a, S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request