pub struct SampleTimestamp {
pub base_unix_nanos: i128,
pub ten_picoseconds: Option<u16>,
}Expand description
One clock reported by the server, including its optional sub-tick precision.
Fields§
§base_unix_nanos: i128UTC nanoseconds since 1970-01-01, from the 100 ns OPC UA DateTime field.
ten_picoseconds: Option<u16>Additional 10 ps intervals supplied with this clock, if present.
Implementations§
Source§impl SampleTimestamp
impl SampleTimestamp
Sourcepub fn to_datetime(self) -> Result<OffsetDateTime, TimestampError>
pub fn to_datetime(self) -> Result<OffsetDateTime, TimestampError>
Convert to UTC when the complete timestamp is exactly representable in nanoseconds.
Trait Implementations§
Source§impl Clone for SampleTimestamp
impl Clone for SampleTimestamp
impl Copy for SampleTimestamp
Source§impl Debug for SampleTimestamp
impl Debug for SampleTimestamp
impl Eq for SampleTimestamp
Source§impl PartialEq for SampleTimestamp
impl PartialEq for SampleTimestamp
impl StructuralPartialEq for SampleTimestamp
Auto Trait Implementations§
impl Forget for SampleTimestamp
impl Freeze for SampleTimestamp
impl Move for SampleTimestamp
impl RefUnwindSafe for SampleTimestamp
impl Send for SampleTimestamp
impl Sync for SampleTimestamp
impl Unpin for SampleTimestamp
impl UnsafeUnpin for SampleTimestamp
impl UnwindSafe for SampleTimestamp
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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