#[repr(C)]pub struct SetupmappingIn {
pub fh: u64,
pub foffset: u64,
pub len: u64,
pub flags: u64,
pub moffset: u64,
}
Expand description
Setup file mapping request message for virtio-fs.
Fields§
§fh: u64
File handler.
foffset: u64
File offset.
len: u64
Length to map.
flags: u64
Mapping flags
moffset: u64
Mapping offset in the DAX window.
Trait Implementations§
Source§impl ByteValued for SetupmappingIn
impl ByteValued for SetupmappingIn
Source§fn from_slice(data: &[u8]) -> Option<&Self>
fn from_slice(data: &[u8]) -> Option<&Self>
Converts a slice of raw data into a reference of
Self
. Read moreSource§fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
Converts a mutable slice of raw data into a mutable reference of
Self
. Read moreSource§fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Converts a mutable reference to
self
into a mutable slice of bytes. Read moreSource§fn as_bytes(&mut self) -> VolatileSlice<'_>
fn as_bytes(&mut self) -> VolatileSlice<'_>
Converts a mutable reference to
self
into a VolatileSlice
. This is
useful because VolatileSlice
provides a Bytes<usize>
implementation. Read moreSource§impl Clone for SetupmappingIn
impl Clone for SetupmappingIn
Source§fn clone(&self) -> SetupmappingIn
fn clone(&self) -> SetupmappingIn
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 SetupmappingIn
impl Debug for SetupmappingIn
Source§impl Default for SetupmappingIn
impl Default for SetupmappingIn
Source§fn default() -> SetupmappingIn
fn default() -> SetupmappingIn
Returns the “default value” for a type. Read more
impl Copy for SetupmappingIn
Auto Trait Implementations§
impl Freeze for SetupmappingIn
impl RefUnwindSafe for SetupmappingIn
impl Send for SetupmappingIn
impl Sync for SetupmappingIn
impl Unpin for SetupmappingIn
impl UnwindSafe for SetupmappingIn
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