Enum oo_bindgen::model::DurationValue
source · 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<DurationValue> for DurationValue
impl PartialEq<DurationValue> for DurationValue
source§fn eq(&self, other: &DurationValue) -> bool
fn eq(&self, other: &DurationValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<DurationValue> for DurationValue
impl PartialOrd<DurationValue> for DurationValue
source§fn partial_cmp(&self, other: &DurationValue) -> Option<Ordering>
fn partial_cmp(&self, other: &DurationValue) -> 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