#[repr(usize)]pub enum DisposeReason {
Requested = 0,
ConnectionClosed = 1,
HostShutdown = 2,
}Variants§
Trait Implementations§
Source§impl Clone for DisposeReason
impl Clone for DisposeReason
Source§fn clone(&self) -> DisposeReason
fn clone(&self) -> DisposeReason
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 DisposeReason
impl Debug for DisposeReason
Source§impl<'de> Deserialize<'de> for DisposeReason
impl<'de> Deserialize<'de> for DisposeReason
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 DisposeReason
Source§impl Hash for DisposeReason
impl Hash for DisposeReason
Source§impl PartialEq for DisposeReason
impl PartialEq for DisposeReason
Source§fn eq(&self, other: &DisposeReason) -> bool
fn eq(&self, other: &DisposeReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DisposeReason
impl PartialOrd for DisposeReason
Source§impl Serialize for DisposeReason
impl Serialize for DisposeReason
impl StructuralPartialEq for DisposeReason
Auto Trait Implementations§
impl Freeze for DisposeReason
impl RefUnwindSafe for DisposeReason
impl Send for DisposeReason
impl Sync for DisposeReason
impl Unpin for DisposeReason
impl UnsafeUnpin for DisposeReason
impl UnwindSafe for DisposeReason
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