Struct loki::sender::AdversaryFragmentSenderSetup
source · pub struct AdversaryFragmentSenderSetup<'a, A: SyncNode + Send> {
pub verify: bool,
pub sync_nodes: Vec<&'a A>,
pub dump_fragments: Option<PathBuf>,
}
Fields§
§verify: bool
§sync_nodes: Vec<&'a A>
§dump_fragments: Option<PathBuf>
Implementations§
source§impl<'a, A: SyncNode + Send> AdversaryFragmentSenderSetup<'a, A>
impl<'a, A: SyncNode + Send> AdversaryFragmentSenderSetup<'a, A>
pub fn sync_before(nodes: Vec<&'a A>) -> Self
pub fn verify(&self) -> bool
pub fn no_sync_nodes(&self) -> bool
pub fn sync_nodes(&self) -> Vec<&'a A>
source§impl<'a> AdversaryFragmentSenderSetup<'a, DummySyncNode>
impl<'a> AdversaryFragmentSenderSetup<'a, DummySyncNode>
Trait Implementations§
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for AdversaryFragmentSenderSetup<'a, A>where A: RefUnwindSafe,
impl<'a, A> Send for AdversaryFragmentSenderSetup<'a, A>where A: Sync,
impl<'a, A> Sync for AdversaryFragmentSenderSetup<'a, A>where A: Sync,
impl<'a, A> Unpin for AdversaryFragmentSenderSetup<'a, A>
impl<'a, A> UnwindSafe for AdversaryFragmentSenderSetup<'a, A>where A: RefUnwindSafe,
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