pub struct CancelReason {
pub code: CancelCode,
pub detail: Option<String>,
pub requested_at: i64,
}Expand description
Reason supplied to crate::execution::ExecutionService::cancel.
requested_at is a Unix timestamp in milliseconds.
Fields§
§code: CancelCodeCategorized cause of the cancellation.
detail: Option<String>Optional human-readable detail string.
requested_at: i64Unix timestamp (milliseconds) when the cancellation was requested.
Trait Implementations§
Source§impl Clone for CancelReason
impl Clone for CancelReason
Source§fn clone(&self) -> CancelReason
fn clone(&self) -> CancelReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CancelReason
impl Debug for CancelReason
Source§impl<'de> Deserialize<'de> for CancelReason
impl<'de> Deserialize<'de> for CancelReason
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
Auto Trait Implementations§
impl Freeze for CancelReason
impl RefUnwindSafe for CancelReason
impl Send for CancelReason
impl Sync for CancelReason
impl Unpin for CancelReason
impl UnsafeUnpin for CancelReason
impl UnwindSafe for CancelReason
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