#[repr(C)]pub struct VmoInfo {Show 19 fields
pub koid: Koid,
pub name: Name,
pub size_bytes: u64,
pub parent_koid: Koid,
pub num_children: usize,
pub num_mappings: usize,
pub share_count: usize,
pub flags: VmoInfoFlags,
pub committed_bytes: u64,
pub handle_rights: Rights,
pub metadata_bytes: u64,
pub committed_change_events: u64,
pub populated_bytes: u64,
pub committed_private_bytes: u64,
pub populated_private_bytes: u64,
pub committed_scaled_bytes: u64,
pub populated_scaled_bytes: u64,
pub committed_fractional_scaled_bytes: u64,
pub populated_fractional_scaled_bytes: u64,
/* private fields */
}
Expand description
Ergonomic equivalent of sys::zx_info_vmo_t. Must be ABI-compatible with it.
Fields§
§koid: Koid
§name: Name
§size_bytes: u64
§parent_koid: Koid
§num_children: usize
§num_mappings: usize
§flags: VmoInfoFlags
§committed_bytes: u64
§handle_rights: Rights
§metadata_bytes: u64
§committed_change_events: u64
§populated_bytes: u64
§committed_private_bytes: u64
§populated_private_bytes: u64
§committed_scaled_bytes: u64
§populated_scaled_bytes: u64
§committed_fractional_scaled_bytes: u64
§populated_fractional_scaled_bytes: u64
Implementations§
Source§impl VmoInfo
impl VmoInfo
pub fn cache_policy(&self) -> CachePolicy
Trait Implementations§
Source§impl From<zx_info_vmo_t> for VmoInfo
impl From<zx_info_vmo_t> for VmoInfo
Source§fn from(info: zx_info_vmo_t) -> VmoInfo
fn from(info: zx_info_vmo_t) -> VmoInfo
Converts to this type from the input type.
Source§impl FromBytes for VmoInfo
impl FromBytes for VmoInfo
Source§impl TryFromBytes for VmoInfo
impl TryFromBytes for VmoInfo
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for VmoInfo
impl Eq for VmoInfo
impl Immutable for VmoInfo
impl StructuralPartialEq for VmoInfo
Auto Trait Implementations§
impl Freeze for VmoInfo
impl RefUnwindSafe for VmoInfo
impl Send for VmoInfo
impl Sync for VmoInfo
impl Unpin for VmoInfo
impl UnwindSafe for VmoInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)