Enum Shutdown

enum Shutdown

Possible values which can be passed to the TcpStream::shutdown method.

Variants

Read

The reading portion of the TcpStream should be shut down.

All currently blocked and future reads will return [Ok](0).

Write

The writing portion of the TcpStream should be shut down.

All currently blocked and future writes will return an error.

Both

Both the reading and the writing portions of the TcpStream should be shut down.

See Shutdown::Read and Shutdown::Write for more information.

Implementations

impl Clone for Shutdown

fn clone(self: &Self) -> Shutdown

impl Copy for Shutdown

impl Debug for Shutdown

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Eq for Shutdown

impl Freeze for Shutdown

impl PartialEq for Shutdown

fn eq(self: &Self, other: &Shutdown) -> bool

impl RefUnwindSafe for Shutdown

impl Send for Shutdown

impl StructuralPartialEq for Shutdown

impl Sync for Shutdown

impl Unpin for Shutdown

impl UnwindSafe for Shutdown

impl<T> Any for Shutdown

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Shutdown

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Shutdown

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Shutdown

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Shutdown

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Shutdown

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Shutdown

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Shutdown

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Shutdown

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>