Struct thor::FragmentSenderSetup
source · pub struct FragmentSenderSetup<'a, S: SyncNode + Send> {
pub resend_on_error: Option<u8>,
pub sync_nodes: Vec<&'a S>,
pub ignore_any_errors: bool,
pub stop_at_error: bool,
pub dump_fragments: Option<PathBuf>,
pub auto_confirm: bool,
pub verify_strategy: Option<VerifyStrategy<'a>>,
pub fire_and_forget: bool,
}
Fields§
§resend_on_error: Option<u8>
§sync_nodes: Vec<&'a S>
§ignore_any_errors: bool
§stop_at_error: bool
§dump_fragments: Option<PathBuf>
§auto_confirm: bool
Sender will confirm transaction (increment account counter)
verify_strategy: Option<VerifyStrategy<'a>>
Sender verifies transaction strategy. By default is disabled, so sender will verify fragment against node to which recieved transaction
fire_and_forget: bool
Just send fragment without any verifications
Implementations§
source§impl<'a, S: SyncNode + Send> FragmentSenderSetup<'a, S>
impl<'a, S: SyncNode + Send> FragmentSenderSetup<'a, S>
pub fn resend_3_times_and_sync_with(sync_nodes: Vec<&'a S>) -> Self
pub fn resend_on_error(&self) -> Option<u8>
pub fn sync_nodes(&self) -> Vec<&'a S>
pub fn no_sync_nodes(&self) -> bool
pub fn ignore_any_errors(&self) -> bool
pub fn attempts_count(&self) -> u8
pub fn auto_confirm(&self) -> bool
pub fn fire_and_forget(&self) -> bool
pub fn new() -> Self
source§impl<'a> FragmentSenderSetup<'a, DummySyncNode>
impl<'a> FragmentSenderSetup<'a, DummySyncNode>
pub fn ignore_errors() -> Self
pub fn resend_3_times() -> Self
pub fn no_verify() -> Self
pub fn stop_at_error(&self) -> bool
pub fn dump_into(path: PathBuf) -> Self
pub fn should_stop_at_error() -> Self
fn def() -> Self
Trait Implementations§
source§impl<'a, S: Clone + SyncNode + Send> Clone for FragmentSenderSetup<'a, S>
impl<'a, S: Clone + SyncNode + Send> Clone for FragmentSenderSetup<'a, S>
source§fn clone(&self) -> FragmentSenderSetup<'a, S>
fn clone(&self) -> FragmentSenderSetup<'a, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Default for FragmentSenderSetup<'a, DummySyncNode>
impl<'a> Default for FragmentSenderSetup<'a, DummySyncNode>
source§fn default() -> FragmentSenderSetup<'a, DummySyncNode>
fn default() -> FragmentSenderSetup<'a, DummySyncNode>
Returns the “default value” for a type. Read more
source§impl<'a, S: SyncNode + Send> From<FragmentSenderSetupBuilder<'a, S>> for FragmentSenderSetup<'a, S>
impl<'a, S: SyncNode + Send> From<FragmentSenderSetupBuilder<'a, S>> for FragmentSenderSetup<'a, S>
source§fn from(
builder: FragmentSenderSetupBuilder<'a, S>
) -> FragmentSenderSetup<'a, S>
fn from( builder: FragmentSenderSetupBuilder<'a, S> ) -> FragmentSenderSetup<'a, S>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for FragmentSenderSetup<'a, S>
impl<'a, S> Send for FragmentSenderSetup<'a, S>where S: Sync,
impl<'a, S> Sync for FragmentSenderSetup<'a, S>where S: Sync,
impl<'a, S> Unpin for FragmentSenderSetup<'a, S>
impl<'a, S> !UnwindSafe for FragmentSenderSetup<'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