Struct rustix::ioctl::patterns::IntegerSetter
source · pub struct IntegerSetter<Opcode> {
value: usize,
_opcode: PhantomData<Opcode>,
}
Expand description
Implements an ioctl
that passes an integer into the ioctl
.
Fields§
§value: usize
The value to pass in.
_opcode: PhantomData<Opcode>
The opcode.
Implementations§
source§impl<Opcode: CompileTimeOpcode> IntegerSetter<Opcode>
impl<Opcode: CompileTimeOpcode> IntegerSetter<Opcode>
Trait Implementations§
source§impl<Opcode: CompileTimeOpcode> Ioctl for IntegerSetter<Opcode>
impl<Opcode: CompileTimeOpcode> Ioctl for IntegerSetter<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(
_out: IoctlOutput,
_extract_output: *mut c_void,
) -> Result<Self::Output>
unsafe fn output_from_ptr( _out: IoctlOutput, _extract_output: *mut c_void, ) -> Result<Self::Output>
Cast the output data to the correct type. Read more
Auto Trait Implementations§
impl<Opcode> Freeze for IntegerSetter<Opcode>
impl<Opcode> RefUnwindSafe for IntegerSetter<Opcode>where
Opcode: RefUnwindSafe,
impl<Opcode> Send for IntegerSetter<Opcode>where
Opcode: Send,
impl<Opcode> Sync for IntegerSetter<Opcode>where
Opcode: Sync,
impl<Opcode> Unpin for IntegerSetter<Opcode>where
Opcode: Unpin,
impl<Opcode> UnwindSafe for IntegerSetter<Opcode>where
Opcode: 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