pub struct NoArg<const OPCODE: Opcode> {}
Expand description
Implements an ioctl
with no real arguments.
To compute a value for the OPCODE
argument, see the functions in the
opcode
module.
Implementations§
Trait Implementations§
Source§impl<const OPCODE: Opcode> Ioctl for NoArg<OPCODE>
impl<const OPCODE: Opcode> Ioctl for NoArg<OPCODE>
Source§const IS_MUTATING: bool = false
const IS_MUTATING: bool = false
Does the
ioctl
mutate any data in the userspace? Read moreSource§fn as_ptr(&mut self) -> *mut c_void
fn as_ptr(&mut self) -> *mut c_void
Get a pointer to the data to be passed to the
ioctl
command. Read moreSource§unsafe fn output_from_ptr(
_: IoctlOutput,
_: *mut c_void,
) -> Result<Self::Output>
unsafe fn output_from_ptr( _: IoctlOutput, _: *mut c_void, ) -> Result<Self::Output>
Cast the output data to the correct type. Read more
Auto Trait Implementations§
impl<const OPCODE: u32> Freeze for NoArg<OPCODE>
impl<const OPCODE: u32> RefUnwindSafe for NoArg<OPCODE>
impl<const OPCODE: u32> Send for NoArg<OPCODE>
impl<const OPCODE: u32> Sync for NoArg<OPCODE>
impl<const OPCODE: u32> Unpin for NoArg<OPCODE>
impl<const OPCODE: u32> UnwindSafe for NoArg<OPCODE>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes