pub enum CancelAndDetachResult {
Done,
AddToRunQueue,
Pending,
}
Expand description
The result of calling the cancel_and_detach
function.
Variants§
Done
The future has finished; it can be dropped.
AddToRunQueue
The future needs to be added to a run queue to be cancelled.
Pending
The future is soon to be cancelled and nothing needs to be done.
Auto Trait Implementations§
impl Freeze for CancelAndDetachResult
impl RefUnwindSafe for CancelAndDetachResult
impl Send for CancelAndDetachResult
impl Sync for CancelAndDetachResult
impl Unpin for CancelAndDetachResult
impl UnwindSafe for CancelAndDetachResult
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