#[repr(C)]pub struct linger {
pub l_onoff: c_int,
pub l_linger: c_int,
}
Expand description
Structure used to manipulate the SO_LINGER option.
Fields§
§l_onoff: c_int
Nonzero to linger on close.
l_linger: c_int
Time to linger.
Trait Implementations§
Source§impl Ord for linger
impl Ord for linger
Source§impl PartialOrd for linger
impl PartialOrd for linger
impl Copy for linger
impl Eq for linger
impl StructuralPartialEq for linger
Auto Trait Implementations§
impl Freeze for linger
impl RefUnwindSafe for linger
impl Send for linger
impl Sync for linger
impl Unpin for linger
impl UnwindSafe for linger
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