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<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>
§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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)