[−][src]Struct abbegm::msg::EgmClock
Fields
sec: u64
usec: u64
Implementations
impl EgmClock
[src]
pub fn new(sec: u64, usec: u64) -> Self
[src]
Create a new time point from seconds and microseconds.
pub fn elapsed_since_epoch(&self) -> Duration
[src]
Get the elapsed time since the epoch as Duration
.
Note that the duration will have only a microsecond resolution.
pub fn as_timestamp_ms(&self) -> u32
[src]
Get the elapsed time as milliseconds since the epoch.
Trait Implementations
impl<'_, '_> Add<&'_ Duration> for &'_ EgmClock
[src]
type Output = EgmClock
The resulting type after applying the +
operator.
fn add(self, right: &Duration) -> Self::Output
[src]
impl<'_, '_> Add<&'_ EgmClock> for &'_ Duration
[src]
type Output = EgmClock
The resulting type after applying the +
operator.
fn add(self, right: &EgmClock) -> Self::Output
[src]
impl Add<Duration> for EgmClock
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, right: Duration) -> Self::Output
[src]
impl Add<EgmClock> for Duration
[src]
type Output = EgmClock
The resulting type after applying the +
operator.
fn add(self, right: EgmClock) -> Self::Output
[src]
impl<'_> AddAssign<&'_ Duration> for EgmClock
[src]
fn add_assign(&mut self, right: &Duration)
[src]
impl AddAssign<Duration> for EgmClock
[src]
fn add_assign(&mut self, right: Duration)
[src]
impl Clone for EgmClock
[src]
impl Copy for EgmClock
[src]
impl Debug for EgmClock
[src]
impl Default for EgmClock
[src]
impl Message for EgmClock
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<EgmClock> for EgmClock
[src]
impl StructuralPartialEq for EgmClock
[src]
Auto Trait Implementations
impl RefUnwindSafe for EgmClock
impl Send for EgmClock
impl Sync for EgmClock
impl Unpin for EgmClock
impl UnwindSafe for EgmClock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,