pub enum CancellationReasonCode {
CallerRequested,
RuntimeShutdown,
}Expand description
Cancellation reason codes.
Variants§
Trait Implementations§
Source§impl Clone for CancellationReasonCode
impl Clone for CancellationReasonCode
Source§fn clone(&self) -> CancellationReasonCode
fn clone(&self) -> CancellationReasonCode
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 moreimpl Copy for CancellationReasonCode
Source§impl Debug for CancellationReasonCode
impl Debug for CancellationReasonCode
Source§impl<'de> Deserialize<'de> for CancellationReasonCode
impl<'de> Deserialize<'de> for CancellationReasonCode
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 CancellationReasonCode
Source§impl Hash for CancellationReasonCode
impl Hash for CancellationReasonCode
Source§impl PartialEq for CancellationReasonCode
impl PartialEq for CancellationReasonCode
Source§impl Serialize for CancellationReasonCode
impl Serialize for CancellationReasonCode
impl StructuralPartialEq for CancellationReasonCode
Auto Trait Implementations§
impl Freeze for CancellationReasonCode
impl RefUnwindSafe for CancellationReasonCode
impl Send for CancellationReasonCode
impl Sync for CancellationReasonCode
impl Unpin for CancellationReasonCode
impl UnsafeUnpin for CancellationReasonCode
impl UnwindSafe for CancellationReasonCode
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