pub enum MeshEvent {
Data {
payload: Vec<u8>,
sender: [u8; 32],
direct: bool,
},
NeighborUp([u8; 32]),
NeighborDown([u8; 32]),
Lagged,
}Expand description
What a subscription reports.
Variants§
Data
A frame from a peer. sender is the node key its trailer names; direct
is true when that same node handed it to us over its own authenticated
connection, so the trailer could not have been forged in transit.
NeighborUp([u8; 32])
NeighborDown([u8; 32])
Lagged
Frames were dropped: the reader fell behind, or gossip did.
Trait Implementations§
Auto Trait Implementations§
impl Forget for MeshEvent
impl Freeze for MeshEvent
impl Move for MeshEvent
impl RefUnwindSafe for MeshEvent
impl Send for MeshEvent
impl Sync for MeshEvent
impl Unpin for MeshEvent
impl UnsafeUnpin for MeshEvent
impl UnwindSafe for MeshEvent
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