Struct zx::ResourceInfo
source · #[repr(C)]pub struct ResourceInfo {
pub kind: u32,
pub flags: u32,
pub base: u64,
pub size: usize,
pub name: [u8; 32],
}
Fields§
§kind: u32
§flags: u32
§base: u64
§size: usize
§name: [u8; 32]
Trait Implementations§
source§impl Clone for ResourceInfo
impl Clone for ResourceInfo
source§fn clone(&self) -> ResourceInfo
fn clone(&self) -> ResourceInfo
Returns a copy 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 ResourceInfo
impl Debug for ResourceInfo
source§impl Default for ResourceInfo
impl Default for ResourceInfo
source§fn default() -> ResourceInfo
fn default() -> ResourceInfo
Returns the “default value” for a type. Read more
source§impl From<zx_info_resource_t> for ResourceInfo
impl From<zx_info_resource_t> for ResourceInfo
source§fn from(info: zx_info_resource_t) -> ResourceInfo
fn from(info: zx_info_resource_t) -> ResourceInfo
Converts to this type from the input type.
source§impl FromBytes for ResourceInfo
impl FromBytes for ResourceInfo
source§impl FromZeros for ResourceInfo
impl FromZeros for ResourceInfo
source§impl PartialEq for ResourceInfo
impl PartialEq for ResourceInfo
source§fn eq(&self, other: &ResourceInfo) -> bool
fn eq(&self, other: &ResourceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFromBytes for ResourceInfo
impl TryFromBytes for ResourceInfo
§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 ResourceInfo
impl Eq for ResourceInfo
impl Immutable for ResourceInfo
impl StructuralPartialEq for ResourceInfo
Auto Trait Implementations§
impl Freeze for ResourceInfo
impl RefUnwindSafe for ResourceInfo
impl Send for ResourceInfo
impl Sync for ResourceInfo
impl Unpin for ResourceInfo
impl UnwindSafe for ResourceInfo
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)