pub struct IoctlReqRead<Device: IoDevice, Result>{ /* private fields */ }
Expand description
Implementation of IoctlReq
with a fixed cmd
value and passing a
pointer to a zeroed memory block of type Result
directly through to the
underlying system call and then returnin a copy of that memory.
Trait Implementations§
Source§impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqRead<Device, Result>
impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqRead<Device, Result>
Source§type ExtArg = ()
type ExtArg = ()
The type that the caller will provide when using this
ioctl
command. Read moreSource§type TempMem = Result
type TempMem = Result
The type of some temporary memory that the request needs to do its
work. Read more
Source§type RawArg = *mut Result
type RawArg = *mut Result
The type of argument that will be passed to the raw system call.
Source§fn prepare_ioctl_args(
&self,
_: &Self::ExtArg,
temp_mem: &mut MaybeUninit<Self::TempMem>,
) -> (ulong, Self::RawArg)
fn prepare_ioctl_args( &self, _: &Self::ExtArg, temp_mem: &mut MaybeUninit<Self::TempMem>, ) -> (ulong, Self::RawArg)
Source§fn prepare_ioctl_result(
&self,
_: int,
_: &Self::ExtArg,
temp_mem: &MaybeUninit<Self::TempMem>,
) -> Self::Result
fn prepare_ioctl_result( &self, _: int, _: &Self::ExtArg, temp_mem: &MaybeUninit<Self::TempMem>, ) -> Self::Result
Prepare a raw successful result from a
ioctl
call to be returned.impl<Device: IoDevice, Result: Copy> Copy for IoctlReqRead<Device, Result>
Auto Trait Implementations§
impl<Device, Result> Freeze for IoctlReqRead<Device, Result>where
*mut Result: Sized,
impl<Device, Result> RefUnwindSafe for IoctlReqRead<Device, Result>
impl<Device, Result> Send for IoctlReqRead<Device, Result>
impl<Device, Result> Sync for IoctlReqRead<Device, Result>
impl<Device, Result> Unpin for IoctlReqRead<Device, Result>
impl<Device, Result> UnwindSafe for IoctlReqRead<Device, Result>
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