pub struct Duration {
pub sec: i32,
pub nanosec: u32,
}Expand description
Duration_t gemaess 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-Werte: <sec>DURATION_INFINITE_SEC</sec> und
<nanosec>DURATION_INFINITE_NSEC</nanosec> werden via
Self::INFINITE/Self::ZERO mit den Spec-Konstanten gemappt.
Fields§
§sec: i32Sekunden-Anteil (signed, da Spec nonNegativeInteger_Duration_SEC
das Symbol DURATION_INFINITE_SEC zulaesst, das auf einen
signed-long-Sentinel mappt).
nanosec: u32Nanosekunden-Anteil (0..=999_999_999, oder 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