Struct linux_io::fd::ioctl::IoctlReqNoArgs
source · #[repr(transparent)]pub struct IoctlReqNoArgs<Device: IoDevice, Result> { /* private fields */ }
Expand description
Implementation of IoctlReq
with a fixed cmd
and passing no arguments
at all, just returning the kernel’s result value.
This is for the less common ioctl
requests that indicate more than just
success in their result, and so callers need to obtain that result.
Trait Implementations§
source§impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqNoArgs<Device, Result>where
Result: 'a + FromIoctlResult<int>,
Device: 'a + IoDevice,
impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqNoArgs<Device, Result>where 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,
_: &Self::ExtArg,
_: &mut MaybeUninit<Self::TempMem>
) -> (ulong, Self::RawArg)
fn prepare_ioctl_args( &self, _: &Self::ExtArg, _: &mut MaybeUninit<Self::TempMem> ) -> (ulong, Self::RawArg)
source§fn prepare_ioctl_result(
&self,
raw: int,
_: &Self::ExtArg,
_: &MaybeUninit<Self::TempMem>
) -> Self::Result
fn prepare_ioctl_result( &self, raw: int, _: &Self::ExtArg, _: &MaybeUninit<Self::TempMem> ) -> Self::Result
Prepare a raw successful result from a
ioctl
call to be returned.