#[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 PartialOrd for Shutdown
impl PartialOrd for Shutdown
impl Copy for Shutdown
impl Eq for Shutdown
impl StructuralPartialEq for Shutdown
Auto Trait Implementations§
impl Freeze for Shutdown
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