Enum Shutdown
pub enum Shutdown
Possible values which can be passed to the TcpStream::shutdown method.
Variants
-
Read The reading portion of the
TcpStreamshould be shut down.All currently blocked and future reads will return
[Ok](0).-
Write The writing portion of the
TcpStreamshould be shut down.All currently blocked and future writes will return an error.
-
Both Both the reading and the writing portions of the
TcpStreamshould be shut down.See
Shutdown::ReadandShutdown::Writefor more information.
Trait Implementations
impl Clone for Shutdown
fn clone(&self) -> Shutdown
impl Copy for Shutdown
impl Debug for Shutdown
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Shutdown
fn assert_fields_are_eq(&self)
impl PartialEq for Shutdown
fn eq(&self, other: &Shutdown) -> bool
impl StructuralPartialEq for Shutdown
impl TrivialClone 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 UnsafeUnpin for Shutdown
impl UnwindSafe for Shutdown
Blanket Implementations
impl<T> Any for Shutdown
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Shutdown
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Shutdown
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Shutdown
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Shutdown
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for Shutdown
where
T: Copy + Debug,
impl<T> SizeHint for Shutdown
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Shutdown
impl<T> ToOwned for Shutdown
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Shutdown
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Shutdown
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Shutdown
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>