pub struct CommitTicket {
pub id: String,
pub seq: u64,
pub ack: Receiver<Result<CommitAck, CommitFailed>>,
}Expand description
Handed back the moment the actor forwards a proposal to the writer in
AckMode::Pipelined (commit-protocol.md §Vocabulary). id and seq
are carried eagerly — the actor mints the ulid and assigns seq at
validation, before the write — so a proposer knows its own identity and
its own commit order without waiting for durability. Only durability
waits, and ack is the one place a commit failure is ever reported.
Fields§
§id: String§seq: u64§ack: Receiver<Result<CommitAck, CommitFailed>>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CommitTicket
impl !UnwindSafe for CommitTicket
impl Freeze for CommitTicket
impl Send for CommitTicket
impl Sync for CommitTicket
impl Unpin for CommitTicket
impl UnsafeUnpin for CommitTicket
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