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
A message arrived. Ordered with respect to others from the same peer in the same session.
SessionEnded
The session with peer ended at epoch. Anything sent to that peer and not yet delivered
may have been lost, and this link cannot say which. Nothing can be done about it yet.
SessionEstablished
A session with peer is in force at epoch. This is the moment on which anything that
must be resent can be.
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