pub struct SocketOptionValue<'a>(/* private fields */);Available on crate features
net or virtio-vsock only.Implementations§
Source§impl SocketOptionValue<'_>
impl SocketOptionValue<'_>
Sourcepub unsafe fn new(optval: *const c_void, optlen: socklen_t) -> Self
pub unsafe fn new(optval: *const c_void, optlen: socklen_t) -> Self
Creates a new socket option value from a raw pointer and its size
§Safety
optvalmust be a null ptr, or a valid pointer provided to asetsockoptsystem calloptlenmust be the data length of theoptvalptr, as provided to asetsockoptsystem call
Trait Implementations§
Source§impl<'a> Debug for SocketOptionValue<'a>
impl<'a> Debug for SocketOptionValue<'a>
Source§impl TryFrom<&SocketOptionValue<'_>> for i32
impl TryFrom<&SocketOptionValue<'_>> for i32
Auto Trait Implementations§
impl<'a> Freeze for SocketOptionValue<'a>
impl<'a> RefUnwindSafe for SocketOptionValue<'a>
impl<'a> Send for SocketOptionValue<'a>
impl<'a> Sync for SocketOptionValue<'a>
impl<'a> Unpin for SocketOptionValue<'a>
impl<'a> UnsafeUnpin for SocketOptionValue<'a>
impl<'a> UnwindSafe for SocketOptionValue<'a>
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