#[non_exhaustive]pub enum DurationType {
Milliseconds,
Seconds,
}
Expand description
Durations may be represented in multiple ways in the underlying C API
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
Duration is represented as a count of milliseconds in a u64 value
Seconds
Duration is represented as a count of seconds in a u64 value
Implementations§
Source§impl DurationType
impl DurationType
Trait Implementations§
Source§impl Clone for DurationType
impl Clone for DurationType
Source§fn clone(&self) -> DurationType
fn clone(&self) -> DurationType
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 DurationType
impl Debug for DurationType
Source§impl From<DurationType> for BasicType
impl From<DurationType> for BasicType
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<DurationType> for CallbackArgStructField
impl From<DurationType> for CallbackArgStructField
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<DurationType> for CallbackArgument
impl From<DurationType> for CallbackArgument
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<DurationType> for CallbackReturnValue
impl From<DurationType> for CallbackReturnValue
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<DurationType> for FunctionArgStructField
impl From<DurationType> for FunctionArgStructField
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<DurationType> for FunctionArgument
impl From<DurationType> for FunctionArgument
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<DurationType> for FunctionReturnValue
impl From<DurationType> for FunctionReturnValue
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<DurationType> for UniversalStructField
impl From<DurationType> for UniversalStructField
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> 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 DurationType
impl PartialEq for DurationType
Source§impl PartialOrd for DurationType
impl PartialOrd for DurationType
impl Copy for DurationType
impl Eq for DurationType
impl StructuralPartialEq for DurationType
Auto Trait Implementations§
impl Freeze for DurationType
impl RefUnwindSafe for DurationType
impl Send for DurationType
impl Sync for DurationType
impl Unpin for DurationType
impl UnwindSafe for DurationType
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