pub struct Duration {
pub sec: i32,
pub nanosec: u32,
}Expand description
Duration_t per DDS 1.4 §2.2.1.2 + DDS-XML 1.0 §7.2.6.
XML-Mapping:
<duration>
<sec>5</sec>
<nanosec>0</nanosec>
</duration>Sentinel values: <sec>DURATION_INFINITE_SEC</sec> and
<nanosec>DURATION_INFINITE_NSEC</nanosec> are mapped via
Self::INFINITE/Self::ZERO to the spec constants.
Fields§
§sec: i32Seconds part (signed, since the spec nonNegativeInteger_Duration_SEC
allows the symbol DURATION_INFINITE_SEC, which maps to a
signed-long sentinel).
nanosec: u32Nanoseconds part (0..=999_999_999, or the sentinel
DURATION_INFINITE_NSEC).
Implementations§
Trait Implementations§
impl Copy for Duration
impl Eq for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnsafeUnpin for Duration
impl UnwindSafe for Duration
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