Struct linux_io::fd::ioctl::IoctlReqRead
source · 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>
§type TempMem = Result
type TempMem = Result
The type of some temporary memory that the request needs to do its
work. Read more
§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
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
)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
)