pub enum Shutdown {
Read,
Write,
Both,
}
Expand description
可以传递给 TcpStream::shutdown
方法的可能值。
Variants§
Trait Implementations§
impl Copy for Shutdown
impl Eq for Shutdown
impl StructuralEq for Shutdown
impl StructuralPartialEq for Shutdown
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§
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
从拥有的值中借用。 Read more