pub enum CancelOutcome {
Cancelled,
Ignored,
}Expand description
What a cancellation did.
Variants§
Cancelled
The request was in flight and has been aborted.
Ignored
Nothing was cancelled: the id was never issued, had already finished, or was already cancelled.
Not an error. The specification says a cancellation notification may arrive after its request has finished, so this is a race the sender is entitled to lose and the notification is defined to be harmless.
Implementations§
Trait Implementations§
Source§impl Clone for CancelOutcome
impl Clone for CancelOutcome
impl Copy for CancelOutcome
Source§impl Debug for CancelOutcome
impl Debug for CancelOutcome
impl Eq for CancelOutcome
Source§impl PartialEq for CancelOutcome
impl PartialEq for CancelOutcome
impl StructuralPartialEq for CancelOutcome
Auto Trait Implementations§
impl Freeze for CancelOutcome
impl RefUnwindSafe for CancelOutcome
impl Send for CancelOutcome
impl Sync for CancelOutcome
impl Unpin for CancelOutcome
impl UnsafeUnpin for CancelOutcome
impl UnwindSafe for CancelOutcome
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