Struct linux_io::fd::ioctl::IoctlReqWriteVal
source · #[repr(transparent)]pub struct IoctlReqWriteVal<Device: IoDevice, Arg, Result = int>where
Arg: AsRawV,{ /* private fields */ }
Expand description
Implementation of IoctlReq
with a fixed cmd
value and passing a
direct value from memory, without pointer indirection.
Trait Implementations§
source§impl<'a, Device, Arg, Result> IoctlReq<'a, Device> for IoctlReqWriteVal<Device, Arg, Result>where
Arg: 'a + AsRawV,
Result: 'a + FromIoctlResult<int>,
Device: 'a + IoDevice,
impl<'a, Device, Arg, Result> IoctlReq<'a, Device> for IoctlReqWriteVal<Device, Arg, Result>where Arg: 'a + AsRawV, Result: 'a + FromIoctlResult<int>, Device: 'a + IoDevice,
§type TempMem = ()
type TempMem = ()
The type of some temporary memory that the request needs to do its
work. Read more
source§fn prepare_ioctl_args(
&self,
arg: &Self::ExtArg,
_: &mut MaybeUninit<Self::TempMem>
) -> (ulong, Arg)
fn prepare_ioctl_args( &self, arg: &Self::ExtArg, _: &mut MaybeUninit<Self::TempMem> ) -> (ulong, Arg)
source§fn prepare_ioctl_result(
&self,
ret: int,
_: &Self::ExtArg,
_: &MaybeUninit<Self::TempMem>
) -> Self::Result
fn prepare_ioctl_result( &self, ret: int, _: &Self::ExtArg, _: &MaybeUninit<Self::TempMem> ) -> Self::Result
Prepare a raw successful result from a
ioctl
call to be returned.