pub enum Ind<P> {
Deliver {
from: NodeId,
msg: P,
},
SessionEnded {
peer: NodeId,
epoch: u64,
},
SessionEstablished {
peer: NodeId,
epoch: u64,
},
}Expand description
Indications to the layer above.
Variants§
Deliver
from is the process that originated the message, never a relayer.
SessionEnded
The scope with peer ended at epoch.
Raised only over a link that reports boundaries. Unlike reliable broadcast, this layer
can bridge one — it holds pending until every correct process has acknowledged, so a
re-establishment lets it resend. It reports the ending anyway, because the layer above may
have its own reason to know, and because a guarantee that lapsed and was repaired is not
the same as one that never lapsed.
SessionEstablished
A scope with peer is in force at epoch.
Trait Implementations§
impl<P: Eq> Eq for Ind<P>
impl<P: PartialEq> StructuralPartialEq for Ind<P>
Auto Trait Implementations§
impl<P> Freeze for Ind<P>where
P: Freeze,
impl<P> RefUnwindSafe for Ind<P>where
P: RefUnwindSafe,
impl<P> Send for Ind<P>where
P: Send,
impl<P> Sync for Ind<P>where
P: Sync,
impl<P> Unpin for Ind<P>where
P: Unpin,
impl<P> UnsafeUnpin for Ind<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Ind<P>where
P: UnwindSafe,
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