pub struct Durable<V> {
pub ets: u64,
pub leader: Option<NodeId>,
pub decision: Option<V>,
pub lec: Option<Started>,
pub lep: Option<Durable<V>>,
}Expand description
Everything this stack keeps durably, as one rewritten value.
The two Option fields are the children’s slots. They are Option because a child may not have
written yet, and because [Slot::write] has to be able to build this record from nothing.
Fields§
§ets: u64ets.
leader: Option<NodeId>ℓ. None before this process’s own Init has written, which is when it is ℓ0.
decision: Option<V>decision.
lec: Option<Started>lec’s record: (startts, start).
lep: Option<Durable<V>>lep.ets’s record: (valts, val) and epochdecision.
Trait Implementations§
impl<V: Eq> Eq for Durable<V>
Source§impl<V: PartialEq> PartialEq for Durable<V>
impl<V: PartialEq> PartialEq for Durable<V>
impl<V: PartialEq> StructuralPartialEq for Durable<V>
Auto Trait Implementations§
impl<V> Freeze for Durable<V>where
V: Freeze,
impl<V> RefUnwindSafe for Durable<V>where
V: RefUnwindSafe,
impl<V> Send for Durable<V>where
V: Send,
impl<V> Sync for Durable<V>where
V: Sync,
impl<V> Unpin for Durable<V>where
V: Unpin,
impl<V> UnsafeUnpin for Durable<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Durable<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