#[repr(C)]pub struct rmw_matched_status_t {
pub total_count: u32,
pub total_count_change: u32,
pub current_count: u32,
pub current_count_change: i32,
}Expand description
Matched payload — NROS_RMW_EVENT_PUBLICATION_MATCHED /
NROS_RMW_EVENT_SUBSCRIPTION_MATCHED. Upstream rmw_matched_status_t
(Iron+), same four fields in the same order.
Width is the one deviation: upstream’s three counts are size_t; ours
are uint32_t, like every other count in this header, so the union keeps
one layout on 32- and 64-bit targets. current_count_change is int32_t
on both sides.
Fields§
§total_count: u32Cumulative matches over the entity’s lifetime.
total_count_change: u32Change in total_count since the last report.
current_count: u32Endpoints matched RIGHT NOW.
current_count_change: i32Change in current_count since the last report; negative when an
endpoint left.
Trait Implementations§
Source§impl Clone for rmw_matched_status_t
impl Clone for rmw_matched_status_t
Source§fn clone(&self) -> rmw_matched_status_t
fn clone(&self) -> rmw_matched_status_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for rmw_matched_status_t
Auto Trait Implementations§
impl Freeze for rmw_matched_status_t
impl RefUnwindSafe for rmw_matched_status_t
impl Send for rmw_matched_status_t
impl Sync for rmw_matched_status_t
impl Unpin for rmw_matched_status_t
impl UnsafeUnpin for rmw_matched_status_t
impl UnwindSafe for rmw_matched_status_t
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