Struct DaiProperties
pub struct DaiProperties {
pub is_input: Option<bool>,
pub manufacturer: Option<String>,
pub product_name: Option<String>,
pub unique_id: Option<[u8; 16]>,
pub clock_domain: Option<u32>,
/* private fields */
}
Fields§
§is_input: Option<bool>
Driver type is input (true) or output (false)
Required.
manufacturer: Option<String>
UI string for the manufacturer name. If not included, the manufacturer is unspecified. If included, this string must be non-empty.
Optional.
product_name: Option<String>
UI string for the product name. If not included, the product name is unspecified. If included, this string must be non-empty.
Optional.
unique_id: Option<[u8; 16]>
A unique identifier for the driver. If not included, there is no unique id for the driver.
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§
§impl Clone for DaiProperties
impl Clone for DaiProperties
§fn clone(&self) -> DaiProperties
fn clone(&self) -> DaiProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for DaiProperties
impl Debug for DaiProperties
§impl<D> Decode<DaiProperties, D> for DaiPropertieswhere
D: ResourceDialect,
impl<D> Decode<DaiProperties, D> for DaiPropertieswhere
D: ResourceDialect,
§fn new_empty() -> DaiProperties
fn new_empty() -> DaiProperties
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for DaiProperties
impl Default for DaiProperties
§fn default() -> DaiProperties
fn default() -> DaiProperties
§impl<D> Encode<DaiProperties, D> for &DaiPropertieswhere
D: ResourceDialect,
impl<D> Encode<DaiProperties, D> for &DaiPropertieswhere
D: ResourceDialect,
§impl PartialEq for DaiProperties
impl PartialEq for DaiProperties
§impl TypeMarker for DaiProperties
impl TypeMarker for DaiProperties
§type Owned = DaiProperties
type Owned = DaiProperties
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for DaiProperties
impl ValueTypeMarker for DaiProperties
§type Borrowed<'a> = &'a DaiProperties
type Borrowed<'a> = &'a DaiProperties
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<DaiProperties as TypeMarker>::Owned,
) -> <DaiProperties as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<DaiProperties as TypeMarker>::Owned, ) -> <DaiProperties as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.