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<Device: IoDevice, Result> Clone for IoctlReqNoArgs<Device, Result>
impl<Device: IoDevice, Result> Clone for IoctlReqNoArgs<Device, Result>
Source§impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqNoArgs<Device, Result>
impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqNoArgs<Device, Result>
Source§type ExtArg = ()
type ExtArg = ()
The type that the caller will provide when using this
ioctl
command. Read moreSource§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.impl<Device: IoDevice, Result> Copy for IoctlReqNoArgs<Device, Result>
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