pub enum Phase {
Negotiating,
Draining,
Sealing,
AwaitingReady,
Committed,
ResumingAfterAbort,
}Expand description
Coarse phase recorded in the on-disk journal between protocol steps. Used
by the supervisor for crash-recovery diagnostics — not the in-memory
state machine. Each variant maps 1:1 to a transition documented in
ARCHITECTURE.md.
Variants§
Negotiating
Hello/HelloAck exchanged with both peers; no protocol message
sent or received yet.
Draining
Drained received from O. Next supervisor action is SealRequest.
Sealing
SealComplete received from O. O has released the flock. Next
supervisor action is Begin to N.
AwaitingReady
Begin sent to N. Waiting for Ready.
Committed
Commit sent to O. Cleanup pending (journal clear, child disarm).
ResumingAfterAbort
ResumeAfterAbort sent to O after a post-seal abort.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Phase
impl<'de> Deserialize<'de> for Phase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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