pub enum Ind<V> {
Ordered {
position: Position,
from: NodeId,
value: V,
},
Contents {
from: Position,
entries: Vec<V>,
},
SessionEnded {
peer: NodeId,
epoch: u64,
},
SessionEstablished {
peer: NodeId,
epoch: u64,
},
}Expand description
Indications to the layer above.
Variants§
Ordered
A command took its place in the agreed sequence — the page’s op(state), in the vocabulary
of a log.
Contents
The answer to a Cmd::Read.
SessionEnded
The scope with peer ended at epoch, as the Synod protocol beneath reported it.
Propagated rather than absorbed: this layer holds no redundancy that outlives a session.
SessionEstablished
A scope with peer is in force at epoch.
Trait Implementations§
impl<V: Eq> Eq for Ind<V>
impl<V: PartialEq> StructuralPartialEq for Ind<V>
Auto Trait Implementations§
impl<V> Freeze for Ind<V>where
V: Freeze,
impl<V> RefUnwindSafe for Ind<V>where
V: RefUnwindSafe,
impl<V> Send for Ind<V>where
V: Send,
impl<V> Sync for Ind<V>where
V: Sync,
impl<V> Unpin for Ind<V>where
V: Unpin,
impl<V> UnsafeUnpin for Ind<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Ind<V>where
V: 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