pub struct TemporaryBoardInfo {
pub vid: u32,
pub pid: u32,
pub board_name: String,
pub board_revision: u32,
}Expand description
This is originally from the Banjo fuchsia.hardware.platform.device library, but it is temporarily included here until that is migrated to FIDL.
Fields§
§vid: u32Vendor ID for the board.
pid: u32Product ID for the board.
board_name: StringBoard name from the boot image platform ID record, (or from the BIOS on x86 platforms).
board_revision: u32Board specific revision number.
Trait Implementations§
Source§impl Clone for TemporaryBoardInfo
impl Clone for TemporaryBoardInfo
Source§fn clone(&self) -> TemporaryBoardInfo
fn clone(&self) -> TemporaryBoardInfo
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 TemporaryBoardInfo
impl Debug for TemporaryBoardInfo
Source§impl<D: ResourceDialect> Decode<TemporaryBoardInfo, D> for TemporaryBoardInfo
impl<D: ResourceDialect> Decode<TemporaryBoardInfo, D> for TemporaryBoardInfo
Source§impl<D: ResourceDialect> Encode<TemporaryBoardInfo, D> for &TemporaryBoardInfo
impl<D: ResourceDialect> Encode<TemporaryBoardInfo, D> for &TemporaryBoardInfo
Source§impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>, T2: Encode<BoundedString<32>, D>, T3: Encode<u32, D>> Encode<TemporaryBoardInfo, D> for (T0, T1, T2, T3)
impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>, T2: Encode<BoundedString<32>, D>, T3: Encode<u32, D>> Encode<TemporaryBoardInfo, D> for (T0, T1, T2, T3)
Source§impl Hash for TemporaryBoardInfo
impl Hash for TemporaryBoardInfo
Source§impl Ord for TemporaryBoardInfo
impl Ord for TemporaryBoardInfo
Source§fn cmp(&self, other: &TemporaryBoardInfo) -> Ordering
fn cmp(&self, other: &TemporaryBoardInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TemporaryBoardInfo
impl PartialEq for TemporaryBoardInfo
Source§impl PartialOrd for TemporaryBoardInfo
impl PartialOrd for TemporaryBoardInfo
Source§impl TypeMarker for TemporaryBoardInfo
impl TypeMarker for TemporaryBoardInfo
Source§type Owned = TemporaryBoardInfo
type Owned = TemporaryBoardInfo
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.Source§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 moreSource§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 TemporaryBoardInfo
impl ValueTypeMarker for TemporaryBoardInfo
Source§type Borrowed<'a> = &'a TemporaryBoardInfo
type Borrowed<'a> = &'a TemporaryBoardInfo
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 Eq for TemporaryBoardInfo
impl Persistable for TemporaryBoardInfo
impl StructuralPartialEq for TemporaryBoardInfo
Auto Trait Implementations§
impl Freeze for TemporaryBoardInfo
impl RefUnwindSafe for TemporaryBoardInfo
impl Send for TemporaryBoardInfo
impl Sync for TemporaryBoardInfo
impl Unpin for TemporaryBoardInfo
impl UnsafeUnpin for TemporaryBoardInfo
impl UnwindSafe for TemporaryBoardInfo
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§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