pub struct SetSockOpt { /* private fields */ }
Expand description
Set a socket option.
Implementations§
Source§impl SetSockOpt
impl SetSockOpt
Sourcepub const CODE: u8 = 46u8
pub const CODE: u8 = 46u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.
pub fn new( fd: impl UseFixed, level: u32, optname: u32, optval: *const c_void, optlen: u32, ) -> Self
pub const fn flags(self, flags: u32) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for SetSockOpt
impl RefUnwindSafe for SetSockOpt
impl !Send for SetSockOpt
impl !Sync for SetSockOpt
impl Unpin for SetSockOpt
impl UnwindSafe for SetSockOpt
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