#[repr(C)]pub struct IoctlWrite {
pub address: u64,
pub offset: u64,
pub length: u64,
}
Expand description
The location and size of writes required after a call to an ioctl.
Fields§
§address: u64
Address in the process to write to.
offset: u64
Offset into the VMO from where to read.
length: u64
Length of the write within the VMO.
Trait Implementations§
Source§impl Clone for IoctlWrite
impl Clone for IoctlWrite
Source§fn clone(&self) -> IoctlWrite
fn clone(&self) -> IoctlWrite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IoctlWrite
impl Debug for IoctlWrite
Source§impl<D> Decode<IoctlWrite, D> for IoctlWritewhere
D: ResourceDialect,
impl<D> Decode<IoctlWrite, D> for IoctlWritewhere
D: ResourceDialect,
Source§fn new_empty() -> IoctlWrite
fn new_empty() -> IoctlWrite
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl<D> Encode<IoctlWrite, D> for &IoctlWritewhere
D: ResourceDialect,
impl<D> Encode<IoctlWrite, D> for &IoctlWritewhere
D: ResourceDialect,
Source§impl Hash for IoctlWrite
impl Hash for IoctlWrite
Source§impl Ord for IoctlWrite
impl Ord for IoctlWrite
Source§fn cmp(&self, other: &IoctlWrite) -> Ordering
fn cmp(&self, other: &IoctlWrite) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IoctlWrite
impl PartialEq for IoctlWrite
Source§impl PartialOrd for IoctlWrite
impl PartialOrd for IoctlWrite
Source§impl TypeMarker for IoctlWrite
impl TypeMarker for IoctlWrite
Source§type Owned = IoctlWrite
type Owned = IoctlWrite
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for IoctlWrite
impl ValueTypeMarker for IoctlWrite
Source§type Borrowed<'a> = &'a IoctlWrite
type Borrowed<'a> = &'a IoctlWrite
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<IoctlWrite as TypeMarker>::Owned,
) -> <IoctlWrite as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<IoctlWrite as TypeMarker>::Owned, ) -> <IoctlWrite as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for IoctlWrite
impl Eq for IoctlWrite
impl Persistable for IoctlWrite
impl StructuralPartialEq for IoctlWrite
Auto Trait Implementations§
impl Freeze for IoctlWrite
impl RefUnwindSafe for IoctlWrite
impl Send for IoctlWrite
impl Sync for IoctlWrite
impl Unpin for IoctlWrite
impl UnwindSafe for IoctlWrite
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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