#[repr(i32)]pub enum ShutdownMode {
Read = 0,
Write = 1,
Both = 2,
}Expand description
Mode d’arrêt pour shutdown(2).
Correspond aux constantes SHUT_* de <sys/socket.h>.
Variants§
Read = 0
Arrête les réceptions futures (SHUT_RD).
Write = 1
Arrête les envois futurs (SHUT_WR).
Both = 2
Arrête les deux (SHUT_RDWR).
Trait Implementations§
Source§impl Clone for ShutdownMode
impl Clone for ShutdownMode
Source§fn clone(&self) -> ShutdownMode
fn clone(&self) -> ShutdownMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShutdownMode
Source§impl Debug for ShutdownMode
impl Debug for ShutdownMode
impl Eq for ShutdownMode
Source§impl Hash for ShutdownMode
impl Hash for ShutdownMode
Source§impl PartialEq for ShutdownMode
impl PartialEq for ShutdownMode
impl StructuralPartialEq for ShutdownMode
Auto Trait Implementations§
impl Freeze for ShutdownMode
impl RefUnwindSafe for ShutdownMode
impl Send for ShutdownMode
impl Sync for ShutdownMode
impl Unpin for ShutdownMode
impl UnsafeUnpin for ShutdownMode
impl UnwindSafe for ShutdownMode
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
Mutably borrows from an owned value. Read more