#[non_exhaustive]pub enum TimeGranularity {
NoTime,
Minutes,
Seconds,
Milliseconds,
Microseconds,
}Expand description
TimeSynchronization.Granularity (Matter Core §11.17) — how precise the time
passed to Node::set_utc_time is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoTime
Time is not currently known.
Minutes
Accurate to the minute.
Seconds
Accurate to the second.
Milliseconds
Accurate to the millisecond.
Microseconds
Accurate to the microsecond.
Trait Implementations§
Source§impl Clone for TimeGranularity
impl Clone for TimeGranularity
Source§fn clone(&self) -> TimeGranularity
fn clone(&self) -> TimeGranularity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeGranularity
Source§impl Debug for TimeGranularity
impl Debug for TimeGranularity
impl Eq for TimeGranularity
Source§impl PartialEq for TimeGranularity
impl PartialEq for TimeGranularity
impl StructuralPartialEq for TimeGranularity
Auto Trait Implementations§
impl Freeze for TimeGranularity
impl RefUnwindSafe for TimeGranularity
impl Send for TimeGranularity
impl Sync for TimeGranularity
impl Unpin for TimeGranularity
impl UnsafeUnpin for TimeGranularity
impl UnwindSafe for TimeGranularity
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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