#[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§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§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
)