Struct ros2_client::ROSTime
source · pub struct ROSTime { /* private fields */ }
Expand description
ROS Time with nanosecond precision
This is the in-memory representation of builtin_interfaces::Time
Implementations§
Trait Implementations§
source§impl Add<ROSDuration> for ROSTime
impl Add<ROSDuration> for ROSTime
source§impl<'de> Deserialize<'de> for ROSTime
impl<'de> Deserialize<'de> for ROSTime
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 Ord for ROSTime
impl Ord for ROSTime
source§impl PartialEq for ROSTime
impl PartialEq for ROSTime
source§impl PartialOrd for ROSTime
impl PartialOrd for ROSTime
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<ROSDuration> for ROSTime
impl Sub<ROSDuration> for ROSTime
source§impl Sub for ROSTime
impl Sub for ROSTime
§type Output = ROSDuration
type Output = ROSDuration
The resulting type after applying the
-
operator.source§impl TryFrom<DateTime<Utc>> for ROSTime
impl TryFrom<DateTime<Utc>> for ROSTime
Fallible conversion to nanoseconds since non-leap-nanoseconds since January 1, 1970 UTC
chrono docs:
“An i64 with nanosecond precision can span a range of ~584 years. This function returns None on an out of range DateTime. The dates that can be represented as nanoseconds are between 1677-09-21T00:12:43.145224192 and 2262-04-11T23:47:16.854775807”
source§impl TryFrom<Timestamp> for ROSTime
impl TryFrom<Timestamp> for ROSTime
§type Error = TimestampConversionError
type Error = TimestampConversionError
The type returned in the event of a conversion error.
impl Copy for ROSTime
impl Eq for ROSTime
impl StructuralPartialEq for ROSTime
Auto Trait Implementations§
impl Freeze for ROSTime
impl RefUnwindSafe for ROSTime
impl Send for ROSTime
impl Sync for ROSTime
impl Unpin for ROSTime
impl UnwindSafe for ROSTime
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