Struct linux_io::fd::ioctl::IoctlReqNoArgs
source · 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>
impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqNoArgs<Device, Result>
§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.Auto Trait Implementations§
impl<Device, Result> Freeze for IoctlReqNoArgs<Device, Result>
impl<Device, Result> RefUnwindSafe for IoctlReqNoArgs<Device, Result>where
Device: RefUnwindSafe,
Result: RefUnwindSafe,
impl<Device, Result> Send for IoctlReqNoArgs<Device, Result>
impl<Device, Result> Sync for IoctlReqNoArgs<Device, Result>
impl<Device, Result> Unpin for IoctlReqNoArgs<Device, Result>
impl<Device, Result> UnwindSafe for IoctlReqNoArgs<Device, Result>where
Device: UnwindSafe,
Result: 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