pub struct CompositeProperties {
pub manufacturer: Option<String>,
pub product: Option<String>,
pub unique_id: Option<[u8; 16]>,
pub clock_domain: Option<u32>,
/* private fields */
}
Fields§
§manufacturer: Option<String>
UI string for the manufacturer name. If not set, the manufacturer is unknown. If included, this string must be non-empty.
Optional.
product: Option<String>
UI string for the product name. If not set, the product name is unknown. If included, this string must be non-empty.
Optional.
unique_id: Option<[u8; 16]>
A unique identifier. If not included, there is no unique id for the Device.
unique_id
arrays starting with 0x42, 0x54, … (or BT
in ASCII) are
reserved for drivers implementing Bluetooth technologies.
unique_id
arrays starting with 0x55, 0x53, 0x42, … (or USB
in ASCII) are
reserved for drivers implementing USB technologies.
Note that even though the above values map to readable ASCII characters, array
values can span the entire uint8 range (0-255).
Optional.
clock_domain: Option<u32>
An identifier for the clock domain in which this hardware operates. If two hardware devices have the same clock domain, their clock rates are identical and perfectly synchronized. Although these two clocks have the same rate, the clock positions may be offset from each other by an arbitrary (but fixed) amount. The clock_domain typically comes from a system wide entity, such as a platform bus or global clock tree.
There are two special values:
-
CLOCK_DOMAIN_MONOTONIC
means the hardware is operating at the same rate as the system montonic clock. -
CLOCK_DOMAIN_EXTERNAL
means the hardware is operating at an unknown rate and is not synchronized with any known clock, not even with other clocks in domainCLOCK_DOMAIN_EXTERNAL
.
If the domain is not CLOCK_DOMAIN_MONOTONIC
, client must use position
notification updates to recover the hardware’s clock.
Required.
Trait Implementations§
Source§impl Clone for CompositeProperties
impl Clone for CompositeProperties
Source§fn clone(&self) -> CompositeProperties
fn clone(&self) -> CompositeProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CompositeProperties
impl Debug for CompositeProperties
Source§impl<D: ResourceDialect> Decode<CompositeProperties, D> for CompositeProperties
impl<D: ResourceDialect> Decode<CompositeProperties, D> for CompositeProperties
Source§impl Default for CompositeProperties
impl Default for CompositeProperties
Source§fn default() -> CompositeProperties
fn default() -> CompositeProperties
Source§impl<D: ResourceDialect> Encode<CompositeProperties, D> for &CompositeProperties
impl<D: ResourceDialect> Encode<CompositeProperties, D> for &CompositeProperties
Source§impl PartialEq for CompositeProperties
impl PartialEq for CompositeProperties
Source§impl TypeMarker for CompositeProperties
impl TypeMarker for CompositeProperties
Source§type Owned = CompositeProperties
type Owned = CompositeProperties
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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 CompositeProperties
impl ValueTypeMarker for CompositeProperties
Source§type Borrowed<'a> = &'a CompositeProperties
type Borrowed<'a> = &'a CompositeProperties
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for CompositeProperties
impl StructuralPartialEq for CompositeProperties
Auto Trait Implementations§
impl Freeze for CompositeProperties
impl RefUnwindSafe for CompositeProperties
impl Send for CompositeProperties
impl Sync for CompositeProperties
impl Unpin for CompositeProperties
impl UnwindSafe for CompositeProperties
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
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)
clone_to_uninit
)