pub struct DirectSockOpt<T> { /* private fields */ }
Expand description
Implementation of both SetSockOpt
and GetSockOpt
with fixed level
and optname
values, passing the arg type directly through to the
underlying system calls.
Trait Implementations§
Source§impl<'a, T: 'a> GetSockOpt<'a> for DirectSockOpt<T>
impl<'a, T: 'a> GetSockOpt<'a> for DirectSockOpt<T>
Source§fn prepare_getsockopt_args(&self) -> (int, int)
fn prepare_getsockopt_args(&self) -> (int, int)
Prepare the arguments for a
getsockopt
system call. The tuple
elements of the result are (level, optname, optlen)
.Source§fn prepare_getsockopt_result(&self, _: int, optval: T) -> Self::Result
fn prepare_getsockopt_result(&self, _: int, optval: T) -> Self::Result
Prepare a raw successful result from a
getsockopt
call to be returned.Source§impl<'a, T: 'a> SetSockOpt<'a> for DirectSockOpt<T>
impl<'a, T: 'a> SetSockOpt<'a> for DirectSockOpt<T>
Source§fn prepare_setsockopt_args(
&self,
arg: &Self::ExtArg,
) -> (int, int, *const Self::OptVal, socklen_t)
fn prepare_setsockopt_args( &self, arg: &Self::ExtArg, ) -> (int, int, *const Self::OptVal, socklen_t)
Prepare the arguments for a
setsockopt
system call. The tuple
elements of the result are (level, optname, optval, optlen)
.Source§fn prepare_setsockopt_result(&self, raw: int) -> Self::Result
fn prepare_setsockopt_result(&self, raw: int) -> Self::Result
Prepare a raw successful result from a
setsockopt
call to be returned.Auto Trait Implementations§
impl<T> Freeze for DirectSockOpt<T>
impl<T> RefUnwindSafe for DirectSockOpt<T>where
T: RefUnwindSafe,
impl<T> Send for DirectSockOpt<T>where
T: Send,
impl<T> Sync for DirectSockOpt<T>where
T: Sync,
impl<T> Unpin for DirectSockOpt<T>where
T: Unpin,
impl<T> UnwindSafe for DirectSockOpt<T>where
T: UnwindSafe,
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