pub struct Clock { /* private fields */ }
Expand description
Struct that implements a Clock and wraps rcl_clock_t
.
Implementations§
Source§impl Clock
impl Clock
Sourcepub fn with_source() -> (Self, ClockSource)
pub fn with_source() -> (Self, ClockSource)
Creates a new Clock with ClockType::RosTime
and a matching ClockSource
that can be used
to update it
Sourcepub fn new(kind: ClockType) -> (Self, Option<ClockSource>)
pub fn new(kind: ClockType) -> (Self, Option<ClockSource>)
Creates a new clock of the given ClockType
.
Sourcepub fn clock_type(&self) -> ClockType
pub fn clock_type(&self) -> ClockType
Returns the clock’s ClockType
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
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