pub struct DeviceReleaseNumber {
pub major: Option<u8>,
pub minor: Option<u8>,
pub subminor: Option<u8>,
/* private fields */
}
Expand description
The device release number. This will be represented as Binary-Coded Decimal - JJ.M.N where JJ = major, M = minor, and N = sub-minor versions (e.g 2.0.1).
Fields§
§major: Option<u8>
Mandatory - major vesion number.
minor: Option<u8>
Mandatory - minor version number. Must be below 16.
subminor: Option<u8>
Mandatory - sub-minor version number. Must be below 16.
Implementations§
Trait Implementations§
source§impl Clone for DeviceReleaseNumber
impl Clone for DeviceReleaseNumber
source§fn clone(&self) -> DeviceReleaseNumber
fn clone(&self) -> DeviceReleaseNumber
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 DeviceReleaseNumber
impl Debug for DeviceReleaseNumber
source§impl Decode<DeviceReleaseNumber> for DeviceReleaseNumber
impl Decode<DeviceReleaseNumber> for DeviceReleaseNumber
source§impl Encode<DeviceReleaseNumber> for &DeviceReleaseNumber
impl Encode<DeviceReleaseNumber> for &DeviceReleaseNumber
source§impl Encode<DeviceReleaseNumber> for DeviceReleaseNumber
impl Encode<DeviceReleaseNumber> for DeviceReleaseNumber
source§impl PartialEq<DeviceReleaseNumber> for DeviceReleaseNumber
impl PartialEq<DeviceReleaseNumber> for DeviceReleaseNumber
source§fn eq(&self, other: &DeviceReleaseNumber) -> bool
fn eq(&self, other: &DeviceReleaseNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for DeviceReleaseNumber
impl TypeMarker for DeviceReleaseNumber
§type Owned = DeviceReleaseNumber
type Owned = DeviceReleaseNumber
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 DeviceReleaseNumber
impl ValueTypeMarker for DeviceReleaseNumber
§type Borrowed<'a> = &'a <DeviceReleaseNumber as TypeMarker>::Owned
type Borrowed<'a> = &'a <DeviceReleaseNumber as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more