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 the one that relayed it.
SessionEnded
The scope with peer ended at epoch.
RB4’s agreement is scoped to the sessions that carried the relay: this layer relays once, on first receipt, and never again, so a relay lost to an ending is lost for good. It holds no redundancy that outlives the scope, so it cannot bridge and must propagate. Raised only over a link that reports boundaries.
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