pub struct CancelTaskResponse(pub Task);Expand description
A typed CancelTask response. The wire form
is the Task object directly.
The task is whatever state it was in at the
moment of cancellation — typically
Cancelled,
but possibly a terminal state if the task
had already completed. The handler is
responsible for setting the right state.
Tuple Fields§
§0: TaskTrait Implementations§
Source§impl Clone for CancelTaskResponse
impl Clone for CancelTaskResponse
Source§impl Debug for CancelTaskResponse
impl Debug for CancelTaskResponse
Source§impl Deref for CancelTaskResponse
impl Deref for CancelTaskResponse
Source§impl<'de> Deserialize<'de> for CancelTaskResponse
impl<'de> Deserialize<'de> for CancelTaskResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CancelTaskResponse
Source§impl From<Task> for CancelTaskResponse
impl From<Task> for CancelTaskResponse
Source§impl PartialEq for CancelTaskResponse
impl PartialEq for CancelTaskResponse
Source§impl Serialize for CancelTaskResponse
impl Serialize for CancelTaskResponse
impl StructuralPartialEq for CancelTaskResponse
Auto Trait Implementations§
impl Freeze for CancelTaskResponse
impl RefUnwindSafe for CancelTaskResponse
impl Send for CancelTaskResponse
impl Sync for CancelTaskResponse
impl Unpin for CancelTaskResponse
impl UnsafeUnpin for CancelTaskResponse
impl UnwindSafe for CancelTaskResponse
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