pub struct DurationMs(/* private fields */);Expand description
Canonical millisecond duration type used across the workspace.
Implementations§
Trait Implementations§
Source§impl Clone for DurationMs
impl Clone for DurationMs
Source§fn clone(&self) -> DurationMs
fn clone(&self) -> DurationMs
Returns a duplicate 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 DurationMs
impl Debug for DurationMs
Source§impl Default for DurationMs
impl Default for DurationMs
Source§fn default() -> DurationMs
fn default() -> DurationMs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DurationMs
impl<'de> Deserialize<'de> for DurationMs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DurationMs
impl Display for DurationMs
Source§impl From<DurationMs> for u64
impl From<DurationMs> for u64
Source§fn from(value: DurationMs) -> Self
fn from(value: DurationMs) -> Self
Converts to this type from the input type.
Source§impl From<u64> for DurationMs
impl From<u64> for DurationMs
Source§impl Hash for DurationMs
impl Hash for DurationMs
Source§impl Ord for DurationMs
impl Ord for DurationMs
Source§fn cmp(&self, other: &DurationMs) -> Ordering
fn cmp(&self, other: &DurationMs) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DurationMs
impl PartialEq for DurationMs
Source§impl PartialOrd for DurationMs
impl PartialOrd for DurationMs
Source§impl Serialize for DurationMs
impl Serialize for DurationMs
impl Copy for DurationMs
impl Eq for DurationMs
impl StructuralPartialEq for DurationMs
Auto Trait Implementations§
impl Freeze for DurationMs
impl RefUnwindSafe for DurationMs
impl Send for DurationMs
impl Sync for DurationMs
impl Unpin for DurationMs
impl UnsafeUnpin for DurationMs
impl UnwindSafe for DurationMs
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