Struct r2r_rcl::rcl_clock_s
source · #[repr(C)]pub struct rcl_clock_s {
pub type_: rcl_clock_type_t,
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,
}
Fields§
§type_: rcl_clock_type_t
§jump_callbacks: *mut rcl_jump_callback_info_t
§num_jump_callbacks: usize
§get_now: Option<unsafe extern "C" fn(data: *mut c_void, now: *mut rcl_time_point_value_t) -> rcl_ret_t>
§data: *mut c_void
§allocator: rcl_allocator_t
Trait Implementations§
source§impl Clone for rcl_clock_s
impl Clone for rcl_clock_s
source§fn clone(&self) -> rcl_clock_s
fn clone(&self) -> rcl_clock_s
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for rcl_clock_s
impl Debug for rcl_clock_s
source§impl PartialEq for rcl_clock_s
impl PartialEq for rcl_clock_s
impl Copy for rcl_clock_s
impl StructuralPartialEq for rcl_clock_s
Auto Trait Implementations§
impl Freeze for rcl_clock_s
impl RefUnwindSafe for rcl_clock_s
impl !Send for rcl_clock_s
impl !Sync for rcl_clock_s
impl Unpin for rcl_clock_s
impl UnwindSafe for rcl_clock_s
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)