pub enum Boundary {
Ended {
peer: NodeId,
epoch: u64,
},
Established {
peer: NodeId,
epoch: u64,
},
}Expand description
A boundary of the scope within which a link’s guarantees hold.
Named here rather than in any one link, because a layer above reacts to the boundary without caring which implementation raised it.
Variants§
Ended
The scope with peer ended at epoch. Anything sent to that peer and not yet delivered may
have been lost, and the link cannot say which.
Established
A scope with peer is in force at epoch. This is the moment on which anything that must
be resent can be.
Trait Implementations§
impl Copy for Boundary
impl Eq for Boundary
impl StructuralPartialEq for Boundary
Auto Trait Implementations§
impl Freeze for Boundary
impl RefUnwindSafe for Boundary
impl Send for Boundary
impl Sync for Boundary
impl Unpin for Boundary
impl UnsafeUnpin for Boundary
impl UnwindSafe for Boundary
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