pub enum ProposeReply {
Committed,
Sealed,
StaleEpoch,
Ticket(CommitTicket),
}Expand description
What SessionCmd::ProposePrepared answers with — plain bool has no
room for the rules-epoch guard’s distinction (commit-protocol.md
§Proposal payloads): a stale epoch means “rebuild under the current
rules and resend”, a genuinely different repair than “the log is sealed,
stop trying”.
Variants§
Committed
Sealed
The actor refused the append: the log is sealed.
StaleEpoch
PreparedPayload::rules_epoch predates the actor’s current masking
rules epoch. Nothing in this proposal was committed.
Ticket(CommitTicket)
AckMode::Pipelined only: forwarded to the writer, durability
outstanding. One ticket per proposal, bearing the proposal’s last
entry’s id and seq — the shape a Group will keep unchanged (S2c).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProposeReply
impl !UnwindSafe for ProposeReply
impl Freeze for ProposeReply
impl Send for ProposeReply
impl Sync for ProposeReply
impl Unpin for ProposeReply
impl UnsafeUnpin for ProposeReply
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