#[repr(C)]pub struct rcl_clock_t {
pub type_: RclClockType,
pub jump_callbacks: *mut rcl_jump_callback_info_t,
pub num_jump_callbacks: usize,
pub get_now: Option<unsafe extern "C" fn(data: *mut c_void, now: *mut rcl_time_point_value_t) -> rcl_ret_t>,
pub data: *mut c_void,
pub allocator: rcl_allocator_t,
}
Expand description
Encapsulation of a time source.
Fields
type_: RclClockType
Clock type
jump_callbacks: *mut rcl_jump_callback_info_t
An array of added jump callbacks.
num_jump_callbacks: usize
Number of callbacks in jump_callbacks.
get_now: Option<unsafe extern "C" fn(data: *mut c_void, now: *mut rcl_time_point_value_t) -> rcl_ret_t>
Pointer to get_now function
data: *mut c_void
Clock storage
allocator: rcl_allocator_t
Custom allocator used for internal allocations.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for rcl_clock_t
impl !Send for rcl_clock_t
impl !Sync for rcl_clock_t
impl Unpin for rcl_clock_t
impl UnwindSafe for rcl_clock_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more