pub enum LingerOption {
Disabled,
Enabled(Duration),
}Expand description
Configuration du linger pour SO_LINGER.
Variants§
Disabled
Linger désactivé : close retourne immédiatement.
Enabled(Duration)
Linger activé : close bloque jusqu’à l’envoi des données ou
l’expiration du délai.
Trait Implementations§
Source§impl Clone for LingerOption
impl Clone for LingerOption
Source§fn clone(&self) -> LingerOption
fn clone(&self) -> LingerOption
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 LingerOption
Source§impl Debug for LingerOption
impl Debug for LingerOption
impl Eq for LingerOption
Source§impl PartialEq for LingerOption
impl PartialEq for LingerOption
impl StructuralPartialEq for LingerOption
Auto Trait Implementations§
impl Freeze for LingerOption
impl RefUnwindSafe for LingerOption
impl Send for LingerOption
impl Sync for LingerOption
impl Unpin for LingerOption
impl UnsafeUnpin for LingerOption
impl UnwindSafe for LingerOption
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