#[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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.