#[non_exhaustive]pub enum DurationValue {
Milliseconds(u64),
Seconds(u64),
}
Expand description
Same as DurationType but with an associated value
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.
Milliseconds(u64)
Duration is represented as a count of milliseconds in a u64 value
Seconds(u64)
Duration is represented as a count of seconds in a u64 value
Trait Implementations§
Source§impl Clone for DurationValue
impl Clone for DurationValue
Source§fn clone(&self) -> DurationValue
fn clone(&self) -> DurationValue
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 DurationValue
impl Debug for DurationValue
Source§impl From<DurationValue> for DefaultCallbackReturnValue
impl From<DurationValue> for DefaultCallbackReturnValue
Source§fn from(x: DurationValue) -> Self
fn from(x: DurationValue) -> Self
Converts to this type from the input type.
Source§impl From<DurationValue> for DurationType
impl From<DurationValue> for DurationType
Source§fn from(x: DurationValue) -> Self
fn from(x: DurationValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DurationValue
impl PartialEq for DurationValue
Source§impl PartialOrd for DurationValue
impl PartialOrd for DurationValue
impl Copy for DurationValue
impl Eq for DurationValue
impl StructuralPartialEq for DurationValue
Auto Trait Implementations§
impl Freeze for DurationValue
impl RefUnwindSafe for DurationValue
impl Send for DurationValue
impl Sync for DurationValue
impl Unpin for DurationValue
impl UnwindSafe for DurationValue
Blanket Implementations§
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