pub struct TimerProperties {
pub id: Option<u64>,
pub supported_resolutions: Option<Vec<Resolution>>,
pub max_ticks: Option<u64>,
pub supports_event: Option<bool>,
pub supports_wait: Option<bool>,
/* private fields */
}
Expand description
Properties for a specific timer abstracted by the driver.
Fields§
§id: Option<u64>
Unique identifier for this timer.
The id
is stable for a given timer, i.e. it does not change across different clients
or different connections from the same client.
Required.
supported_resolutions: Option<Vec<Resolution>>
Retrieves the resolutions supported by this timer.
Required.
max_ticks: Option<u64>
Range in ticks.
This is the maximum amount of time that can be set in terms of ticks when a timer is started. The maximum range in actual time (e.g. nanoseconds) depends on the resolution used.
Required.
supports_event: Option<bool>
If true then the SetEvent
method is supported, if false or not present it is not
supported.
Optional.
supports_wait: Option<bool>
If true then the StartAndWait
and StartAndWait2
methods are supported, if false or
not present these methods are not supported.
Optional.
Trait Implementations§
Source§impl Clone for TimerProperties
impl Clone for TimerProperties
Source§fn clone(&self) -> TimerProperties
fn clone(&self) -> TimerProperties
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 TimerProperties
impl Debug for TimerProperties
Source§impl<D: ResourceDialect> Decode<TimerProperties, D> for TimerProperties
impl<D: ResourceDialect> Decode<TimerProperties, D> for TimerProperties
Source§impl Default for TimerProperties
impl Default for TimerProperties
Source§fn default() -> TimerProperties
fn default() -> TimerProperties
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<TimerProperties, D> for &TimerProperties
impl<D: ResourceDialect> Encode<TimerProperties, D> for &TimerProperties
Source§impl PartialEq for TimerProperties
impl PartialEq for TimerProperties
Source§impl TypeMarker for TimerProperties
impl TypeMarker for TimerProperties
Source§type Owned = TimerProperties
type Owned = TimerProperties
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 TimerProperties
impl ValueTypeMarker for TimerProperties
Source§type Borrowed<'a> = &'a TimerProperties
type Borrowed<'a> = &'a TimerProperties
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for TimerProperties
impl StructuralPartialEq for TimerProperties
Auto Trait Implementations§
impl Freeze for TimerProperties
impl RefUnwindSafe for TimerProperties
impl Send for TimerProperties
impl Sync for TimerProperties
impl Unpin for TimerProperties
impl UnwindSafe for TimerProperties
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
)