Enum oo_bindgen::model::DurationType
source · #[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<DurationType> for DurationType
impl PartialEq<DurationType> for DurationType
source§fn eq(&self, other: &DurationType) -> bool
fn eq(&self, other: &DurationType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<DurationType> for DurationType
impl PartialOrd<DurationType> for DurationType
source§fn partial_cmp(&self, other: &DurationType) -> Option<Ordering>
fn partial_cmp(&self, other: &DurationType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more