pub struct DirectCommunicatorEvent<I: Invocation> {
pub sender: NodeIdOf<I>,
pub receiver: NodeIdOf<I>,
pub e2e_delay: Duration,
pub dropped: bool,
pub payload: DirectCommunicatorPayload<I>,
}Fields§
§sender: NodeIdOf<I>§receiver: NodeIdOf<I>§e2e_delay: Duration§dropped: bool§payload: DirectCommunicatorPayload<I>Trait Implementations§
Source§impl<I: Clone + Invocation> Clone for DirectCommunicatorEvent<I>
impl<I: Clone + Invocation> Clone for DirectCommunicatorEvent<I>
Source§fn clone(&self) -> DirectCommunicatorEvent<I>
fn clone(&self) -> DirectCommunicatorEvent<I>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<I> Freeze for DirectCommunicatorEvent<I>where
<<<I as Invocation>::State as State>::Node as NodeInfo>::Id: Freeze,
<I as Invocation>::RoundNum: Freeze,
<I as Invocation>::CoordNum: Freeze,
impl<I> RefUnwindSafe for DirectCommunicatorEvent<I>where
<<<I as Invocation>::State as State>::Node as NodeInfo>::Id: RefUnwindSafe,
<I as Invocation>::RoundNum: RefUnwindSafe,
<I as Invocation>::CoordNum: RefUnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
impl<I> Send for DirectCommunicatorEvent<I>
impl<I> Sync for DirectCommunicatorEvent<I>
impl<I> Unpin for DirectCommunicatorEvent<I>
impl<I> UnsafeUnpin for DirectCommunicatorEvent<I>where
<<<I as Invocation>::State as State>::Node as NodeInfo>::Id: UnsafeUnpin,
<I as Invocation>::RoundNum: UnsafeUnpin,
<I as Invocation>::CoordNum: UnsafeUnpin,
impl<I> UnwindSafe for DirectCommunicatorEvent<I>where
<<<I as Invocation>::State as State>::Node as NodeInfo>::Id: UnwindSafe,
<I as Invocation>::RoundNum: UnwindSafe,
<I as Invocation>::CoordNum: UnwindSafe,
<<I as Invocation>::State as State>::LogEntry: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more