pub struct IoctlReqConstArg<Device: IoDevice, Result, const ARG: int> { /* private fields */ }
Expand description
Implementation of IoctlReq
with a fixed cmd
and passing a constant
int as the argument, then returning the kernel’s result value.
Trait Implementations§
Source§impl<Device: IoDevice, Result, const ARG: int> Clone for IoctlReqConstArg<Device, Result, ARG>
impl<Device: IoDevice, Result, const ARG: int> Clone for IoctlReqConstArg<Device, Result, ARG>
Source§impl<'a, Device, Result, const ARG: int> IoctlReq<'a, Device> for IoctlReqConstArg<Device, Result, ARG>
impl<'a, Device, Result, const ARG: int> IoctlReq<'a, Device> for IoctlReqConstArg<Device, Result, ARG>
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, const ARG: int> Copy for IoctlReqConstArg<Device, Result, ARG>
Auto Trait Implementations§
impl<Device, Result, const ARG: i32> Freeze for IoctlReqConstArg<Device, Result, ARG>
impl<Device, Result, const ARG: i32> RefUnwindSafe for IoctlReqConstArg<Device, Result, ARG>where
Device: RefUnwindSafe,
Result: RefUnwindSafe,
impl<Device, Result, const ARG: i32> Send for IoctlReqConstArg<Device, Result, ARG>
impl<Device, Result, const ARG: i32> Sync for IoctlReqConstArg<Device, Result, ARG>
impl<Device, Result, const ARG: i32> Unpin for IoctlReqConstArg<Device, Result, ARG>
impl<Device, Result, const ARG: i32> UnwindSafe for IoctlReqConstArg<Device, Result, ARG>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