Struct linux_io::fd::ioctl::IoctlReqWrite
source · #[repr(transparent)]pub struct IoctlReqWrite<Device: IoDevice, Arg, Result = int>where
*const Arg: AsRawV,{ /* private fields */ }
Expand description
Implementation of IoctlReq
with a fixed cmd
value and passing a
pointer to an argument value in memory.
Trait Implementations§
source§impl<'a, Device, Arg, Result> IoctlReq<'a, Device> for IoctlReqWrite<Device, Arg, Result>where
*const Arg: AsRawV,
Arg: 'a,
Result: 'a + FromIoctlResult<int>,
Device: 'a + IoDevice,
impl<'a, Device, Arg, Result> IoctlReq<'a, Device> for IoctlReqWrite<Device, Arg, Result>where *const Arg: AsRawV, Arg: 'a, Result: 'a + FromIoctlResult<int>, Device: 'a + IoDevice,
§type ExtArg = &'a Arg
type ExtArg = &'a Arg
The type that the caller will provide when using this
ioctl
command. Read more§type TempMem = ()
type TempMem = ()
The type of some temporary memory that the request needs to do its
work. Read more
§type RawArg = *const Arg
type RawArg = *const Arg
The type of argument that will be passed to the raw system call.
source§fn prepare_ioctl_args(
&self,
arg: &Self::ExtArg,
_: &mut MaybeUninit<Self::TempMem>
) -> (ulong, *const Arg)
fn prepare_ioctl_args( &self, arg: &Self::ExtArg, _: &mut MaybeUninit<Self::TempMem> ) -> (ulong, *const 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.