Enum rustix::net::Shutdown
#[repr(u32)]
pub enum Shutdown {
Read,
Write,
ReadWrite,
}
Documentation
SHUT_*
constants for use with shutdown
.
Variants
Read
SHUT_WR
—Disable further read operations.
Write
SHUT_WR
—Disable further write operations.
ReadWrite
SHUT_RDWR
—Disable further read and write operations.
Trait Implementations
impl Debug for Shutdown
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Hash for Shutdown
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for Shutdown
impl StructuralPartialEq for Shutdown
Auto Trait Implementations
impl RefUnwindSafe for Shutdown
impl UnwindSafe for Shutdown
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T