Struct linux_io::fd::sockopt::DirectSockOpt
source · 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.