pub struct NodeDeviceInfo {
pub vid: Option<u32>,
pub pid: Option<u32>,
pub did: Option<u32>,
pub mmio_count: Option<u32>,
pub irq_count: Option<u32>,
pub bti_count: Option<u32>,
pub smc_count: Option<u32>,
pub metadata_count: Option<u32>,
pub name: Option<String>,
/* private fields */
}
Fields§
§vid: Option<u32>
Vendor ID, specified in //zircon/system/ulib/ddk-platform-defs/include/lib/ddk/platform-defs.h
pid: Option<u32>
Platform ID, specified in //zircon/system/ulib/ddk-platform-defs/include/lib/ddk/platform-defs.h
did: Option<u32>
Device ID, specified in //zircon/system/ulib/ddk-platform-defs/include/lib/ddk/platform-defs.h
mmio_count: Option<u32>
The number of MMIO regions provided to this device.
irq_count: Option<u32>
The number of interrupts provided to this device.
bti_count: Option<u32>
The number of bus transaction initiaitors provided to this device.
smc_count: Option<u32>
The number of secure monitor call resources provided to this device.
metadata_count: Option<u32>
The number of metadata blobs associated provided this device.
name: Option<String>
The name the board driver provided for this device.
Trait Implementations§
Source§impl Clone for NodeDeviceInfo
impl Clone for NodeDeviceInfo
Source§fn clone(&self) -> NodeDeviceInfo
fn clone(&self) -> NodeDeviceInfo
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 NodeDeviceInfo
impl Debug for NodeDeviceInfo
Source§impl<D: ResourceDialect> Decode<NodeDeviceInfo, D> for NodeDeviceInfo
impl<D: ResourceDialect> Decode<NodeDeviceInfo, D> for NodeDeviceInfo
Source§impl Default for NodeDeviceInfo
impl Default for NodeDeviceInfo
Source§fn default() -> NodeDeviceInfo
fn default() -> NodeDeviceInfo
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<NodeDeviceInfo, D> for &NodeDeviceInfo
impl<D: ResourceDialect> Encode<NodeDeviceInfo, D> for &NodeDeviceInfo
Source§impl PartialEq for NodeDeviceInfo
impl PartialEq for NodeDeviceInfo
Source§impl TypeMarker for NodeDeviceInfo
impl TypeMarker for NodeDeviceInfo
Source§type Owned = NodeDeviceInfo
type Owned = NodeDeviceInfo
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
.§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 more§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 NodeDeviceInfo
impl ValueTypeMarker for NodeDeviceInfo
Source§type Borrowed<'a> = &'a NodeDeviceInfo
type Borrowed<'a> = &'a NodeDeviceInfo
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for NodeDeviceInfo
impl StructuralPartialEq for NodeDeviceInfo
Auto Trait Implementations§
impl Freeze for NodeDeviceInfo
impl RefUnwindSafe for NodeDeviceInfo
impl Send for NodeDeviceInfo
impl Sync for NodeDeviceInfo
impl Unpin for NodeDeviceInfo
impl UnwindSafe for NodeDeviceInfo
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§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