#[repr(C)]pub enum Shutdown {
Read = 0,
Write = 1,
Both = 2,
}
Expand description
Network stream shutdown options.
This type is equivalent to Shutdown
in the standard library.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Shutdown
impl<'de> Deserialize<'de> for Shutdown
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
source§impl Ord for Shutdown
impl Ord for Shutdown
source§impl PartialEq for Shutdown
impl PartialEq for Shutdown
source§impl PartialOrd for Shutdown
impl PartialOrd for Shutdown
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Shutdown
impl Eq for Shutdown
impl StructuralEq for Shutdown
impl StructuralPartialEq for Shutdown
Auto Trait Implementations§
impl RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
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