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§
Source§impl Clone for DaiProperties
impl Clone for DaiProperties
Source§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 moreSource§impl Debug for DaiProperties
impl Debug for DaiProperties
Source§impl<D: ResourceDialect> Decode<DaiProperties, D> for DaiProperties
impl<D: ResourceDialect> Decode<DaiProperties, D> for DaiProperties
Source§impl Default for DaiProperties
impl Default for DaiProperties
Source§fn default() -> DaiProperties
fn default() -> DaiProperties
Source§impl<D: ResourceDialect> Encode<DaiProperties, D> for &DaiProperties
impl<D: ResourceDialect> Encode<DaiProperties, D> for &DaiProperties
Source§impl PartialEq for DaiProperties
impl PartialEq for DaiProperties
Source§impl TypeMarker for DaiProperties
impl TypeMarker for DaiProperties
Source§type Owned = DaiProperties
type Owned = DaiProperties
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 DaiProperties
impl ValueTypeMarker for DaiProperties
Source§type Borrowed<'a> = &'a DaiProperties
type Borrowed<'a> = &'a DaiProperties
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for DaiProperties
impl StructuralPartialEq for DaiProperties
Auto Trait Implementations§
impl Freeze for DaiProperties
impl RefUnwindSafe for DaiProperties
impl Send for DaiProperties
impl Sync for DaiProperties
impl Unpin for DaiProperties
impl UnwindSafe for DaiProperties
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
)