#[repr(C)]pub struct PlatformId {
pub vid: u32,
pub pid: u32,
pub board_name: [u8; 32],
}
Expand description
ZBI_TYPE_PLATFORM_ID payload.
Fields§
§vid: u32
§pid: u32
§board_name: [u8; 32]
Trait Implementations§
Source§impl Clone for PlatformId
impl Clone for PlatformId
Source§fn clone(&self) -> PlatformId
fn clone(&self) -> PlatformId
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 PlatformId
impl Debug for PlatformId
Source§impl FromBytes for PlatformId
impl FromBytes for PlatformId
Source§impl FromZeros for PlatformId
impl FromZeros for PlatformId
Source§impl IntoBytes for PlatformId
impl IntoBytes for PlatformId
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl PartialEq for PlatformId
impl PartialEq for PlatformId
Source§impl TryFromBytes for PlatformId
impl TryFromBytes for PlatformId
§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 PlatformId
impl Eq for PlatformId
impl StructuralPartialEq for PlatformId
Auto Trait Implementations§
impl Freeze for PlatformId
impl RefUnwindSafe for PlatformId
impl Send for PlatformId
impl Sync for PlatformId
impl Unpin for PlatformId
impl UnwindSafe for PlatformId
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
)