#[repr(C)]
pub enum Shutdown {
Read,
Write,
}
Expand description
The stream’s side to shutdown.
This should be used when calling stream_shutdown()
.
Variants
Read
Stop receiving stream data.
Write
Stop sending stream data.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more