pub struct OperationSnapshot {
pub phase: OperationPhase,
pub delivery: DeliveryEvidence,
pub result: Option<Result<TaskSuccess>>,
}Expand description
Point-in-time snapshot of a send or request operation.
Processing phase and delivery evidence describe different facts. An operation with an uncertain write may be requeued, and a final failure does not prove that the peer saw no data.
SDK snapshots carry a result only in OperationPhase::Finished. Reading a snapshot does not
win termination races; completion, cancellation, and expiry still compete for one terminal state.
Fields§
§phase: OperationPhaseCurrent processing phase, independent of peer receipt.
delivery: DeliveryEvidenceStrongest confirmed delivery evidence across all write attempts.
result: Option<Result<TaskSuccess>>Final success or error; None for an unfinished SDK snapshot.
Trait Implementations§
Source§impl Clone for OperationSnapshot
impl Clone for OperationSnapshot
Auto Trait Implementations§
impl !RefUnwindSafe for OperationSnapshot
impl !UnwindSafe for OperationSnapshot
impl Forget for OperationSnapshot
impl Freeze for OperationSnapshot
impl Move for OperationSnapshot
impl Send for OperationSnapshot
impl Sync for OperationSnapshot
impl Unpin for OperationSnapshot
impl UnsafeUnpin for OperationSnapshot
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