pub enum TerminationOutcome {
TerminatedBeforeWrite,
TerminatedAfterWrite,
DeliveryUnknown,
AlreadyFinished,
}Expand description
Result of racing cancellation or expiry against operation completion.
Describes the effective termination decision rather than an earlier snapshot. Transport and callback tasks may still be shutting down when the terminating call returns.
Variants§
TerminatedBeforeWrite
Termination won before any business data could be written.
TerminatedAfterWrite
Writing was confirmed and termination won while awaiting a response.
DeliveryUnknown
Termination won, but operation data may have reached the peer.
AlreadyFinished
Another terminal result already won; this call changes nothing.
Trait Implementations§
Source§impl Clone for TerminationOutcome
impl Clone for TerminationOutcome
impl Copy for TerminationOutcome
Source§impl Debug for TerminationOutcome
impl Debug for TerminationOutcome
impl Eq for TerminationOutcome
Source§impl PartialEq for TerminationOutcome
impl PartialEq for TerminationOutcome
impl StructuralPartialEq for TerminationOutcome
Auto Trait Implementations§
impl Forget for TerminationOutcome
impl Freeze for TerminationOutcome
impl Move for TerminationOutcome
impl RefUnwindSafe for TerminationOutcome
impl Send for TerminationOutcome
impl Sync for TerminationOutcome
impl Unpin for TerminationOutcome
impl UnsafeUnpin for TerminationOutcome
impl UnwindSafe for TerminationOutcome
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