pub struct LivelinessChanged {
pub alive: Counter,
pub not_alive: Counter,
pub last_publication_handle: InstanceHandle,
}Expand description
Delivered to the
with_liveliness_changed
callback when a matched writer transitions between active and inactive.
Fields§
§alive: CounterRunning count of matched writers that are currently active.
not_alive: CounterRunning count of matched writers that are currently inactive.
last_publication_handle: InstanceHandleInstance handle of the last writer whose liveliness changed.
Trait Implementations§
Source§impl Clone for LivelinessChanged
impl Clone for LivelinessChanged
Source§fn clone(&self) -> LivelinessChanged
fn clone(&self) -> LivelinessChanged
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 LivelinessChanged
Source§impl Debug for LivelinessChanged
impl Debug for LivelinessChanged
impl Eq for LivelinessChanged
Source§impl From<dds_liveliness_changed_status> for LivelinessChanged
impl From<dds_liveliness_changed_status> for LivelinessChanged
Source§fn from(status: dds_liveliness_changed_status_t) -> Self
fn from(status: dds_liveliness_changed_status_t) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LivelinessChanged
impl PartialEq for LivelinessChanged
Source§fn eq(&self, other: &LivelinessChanged) -> bool
fn eq(&self, other: &LivelinessChanged) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LivelinessChanged
Auto Trait Implementations§
impl Freeze for LivelinessChanged
impl RefUnwindSafe for LivelinessChanged
impl Send for LivelinessChanged
impl Sync for LivelinessChanged
impl Unpin for LivelinessChanged
impl UnsafeUnpin for LivelinessChanged
impl UnwindSafe for LivelinessChanged
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