pub struct WireDuration(pub u64);Expand description
A real-time duration on the wire, in whole milliseconds.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for WireDuration
impl Clone for WireDuration
impl Copy for WireDuration
Source§impl Debug for WireDuration
impl Debug for WireDuration
Source§impl Default for WireDuration
impl Default for WireDuration
Source§impl<'de> Deserialize<'de> for WireDuration
impl<'de> Deserialize<'de> for WireDuration
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
impl Eq for WireDuration
Source§impl From<Duration> for WireDuration
impl From<Duration> for WireDuration
Source§impl From<WireDuration> for Duration
impl From<WireDuration> for Duration
Source§fn from(duration: WireDuration) -> Self
fn from(duration: WireDuration) -> Self
Converts to this type from the input type.
Source§impl Hash for WireDuration
impl Hash for WireDuration
Source§impl Ord for WireDuration
impl Ord for WireDuration
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WireDuration
impl PartialEq for WireDuration
Source§impl PartialOrd for WireDuration
impl PartialOrd for WireDuration
Source§impl Serialize for WireDuration
impl Serialize for WireDuration
impl StructuralPartialEq for WireDuration
Auto Trait Implementations§
impl Forget for WireDuration
impl Freeze for WireDuration
impl Move for WireDuration
impl RefUnwindSafe for WireDuration
impl Send for WireDuration
impl Sync for WireDuration
impl Unpin for WireDuration
impl UnsafeUnpin for WireDuration
impl UnwindSafe for WireDuration
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