Struct rustdds::NotAliveGenerationCounts
source · pub struct NotAliveGenerationCounts {
pub disposed_generation_count: i32,
pub no_writers_generation_count: i32,
}Expand description
A double counter for counting how many times an instance as become Alive.
For each instance the middleware internally maintains two counts: the disposed_generation_count and no_writers_generation_count, relative to each DataReader:
The disposed_generation_count and no_writers_generation_count are initialized to zero when the DataReader first detects the presence of a never-seen-before instance.
The disposed_generation_count is incremented each time the instance_state of the corresponding instance changes from NOT_ALIVE_DISPOSED to ALIVE.
The no_writers_generation_count is incremented each time the instance_state of the corresponding instance changes from NOT_ALIVE_NO_WRITERS to ALIVE. The disposed_generation_count and no_writers_generation_count available in the SampleInfo capture a snapshot of the corresponding counters at the time the sample was received.
See DDS spec v1.4 Section “2.2.2.5.1.5 Interpretation of the SampleInfo disposed_generation_count and no_writers_generation_count”
Fields§
§disposed_generation_count: i32§no_writers_generation_count: i32Implementations§
Trait Implementations§
source§impl Clone for NotAliveGenerationCounts
impl Clone for NotAliveGenerationCounts
source§fn clone(&self) -> NotAliveGenerationCounts
fn clone(&self) -> NotAliveGenerationCounts
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for NotAliveGenerationCounts
impl Debug for NotAliveGenerationCounts
source§impl PartialEq for NotAliveGenerationCounts
impl PartialEq for NotAliveGenerationCounts
impl Copy for NotAliveGenerationCounts
impl Eq for NotAliveGenerationCounts
impl StructuralPartialEq for NotAliveGenerationCounts
Auto Trait Implementations§
impl Freeze for NotAliveGenerationCounts
impl RefUnwindSafe for NotAliveGenerationCounts
impl Send for NotAliveGenerationCounts
impl Sync for NotAliveGenerationCounts
impl Unpin for NotAliveGenerationCounts
impl UnwindSafe for NotAliveGenerationCounts
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)