#[repr(transparent)]
pub struct IoctlReqWriteVal<Device: IoDevice, Arg, Result = int>where Arg: AsRawV,{ /* private fields */ }
Expand description

Implementation of IoctlReq with a fixed cmd value and passing a direct value from memory, without pointer indirection.

Trait Implementations§

source§

impl<'a, Device, Arg, Result> IoctlReq<'a, Device> for IoctlReqWriteVal<Device, Arg, Result>where Arg: 'a + AsRawV, Result: 'a + FromIoctlResult<int>, Device: 'a + IoDevice,

§

type ExtArg = Arg

The type that the caller will provide when using this ioctl command. Read more
§

type TempMem = ()

The type of some temporary memory that the request needs to do its work. Read more
§

type RawArg = Arg

The type of argument that will be passed to the raw system call.
§

type Result = Result

The type of the result of the fcntl call.
source§

fn prepare_ioctl_args( &self, arg: &Self::ExtArg, _: &mut MaybeUninit<Self::TempMem> ) -> (ulong, Arg)

Prepare the cmd and arg values for a ioctl system call. Read more
source§

fn prepare_ioctl_result( &self, ret: int, _: &Self::ExtArg, _: &MaybeUninit<Self::TempMem> ) -> Self::Result

Prepare a raw successful result from a ioctl call to be returned.

Auto Trait Implementations§

§

impl<Device, Arg, Result> RefUnwindSafe for IoctlReqWriteVal<Device, Arg, Result>where Arg: RefUnwindSafe, Device: RefUnwindSafe, Result: RefUnwindSafe,

§

impl<Device, Arg, Result> Send for IoctlReqWriteVal<Device, Arg, Result>where Arg: Send, Device: Send, Result: Send,

§

impl<Device, Arg, Result> Sync for IoctlReqWriteVal<Device, Arg, Result>where Arg: Sync, Device: Sync, Result: Sync,

§

impl<Device, Arg, Result> Unpin for IoctlReqWriteVal<Device, Arg, Result>where Arg: Unpin, Device: Unpin, Result: Unpin,

§

impl<Device, Arg, Result> UnwindSafe for IoctlReqWriteVal<Device, Arg, Result>where Arg: UnwindSafe, Device: UnwindSafe, Result: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.