pub struct TimeInterval(pub i64);Expand description
An interval of passed time as represented in PTP messages.
Tuple Fields§
§0: i64The length of the time intervals in 2^16ths of a nanoseconds.
Implementations§
Trait Implementations§
Source§impl Clone for TimeInterval
impl Clone for TimeInterval
impl Copy for TimeInterval
Source§impl Debug for TimeInterval
impl Debug for TimeInterval
Source§impl Default for TimeInterval
impl Default for TimeInterval
Source§impl<'de> Deserialize<'de> for TimeInterval
impl<'de> Deserialize<'de> for TimeInterval
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 TimeInterval
Source§impl From<TimeInterval> for Duration
impl From<TimeInterval> for Duration
Source§fn from(value: TimeInterval) -> Self
fn from(value: TimeInterval) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TimeInterval
impl PartialEq for TimeInterval
Source§impl Serialize for TimeInterval
impl Serialize for TimeInterval
impl StructuralPartialEq for TimeInterval
Auto Trait Implementations§
impl Forget for TimeInterval
impl Freeze for TimeInterval
impl Move for TimeInterval
impl RefUnwindSafe for TimeInterval
impl Send for TimeInterval
impl Sync for TimeInterval
impl Unpin for TimeInterval
impl UnsafeUnpin for TimeInterval
impl UnwindSafe for TimeInterval
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