Enum rustdds::InstanceState
source · #[repr(u32)]pub enum InstanceState {
Alive = 1,
NotAliveDisposed = 2,
NotAliveNoWriters = 4,
}
Expand description
Is this data instance alive or not and why.
The instance_state available in the SampleInfo is a snapshot of the instance_state of the instance at the time the collection was obtained (i.e., at the time read or take was called). The instance_state is therefore be the same for all samples in the returned collection that refer to the same instance.
DDS spec v1.4 Section “2.2.2.5.1.3 Interpretation of the SampleInfo instance_state”
Variants§
Alive = 1
indicates that (a) samples have been received for the instance, (b) there are live DataWriter entities writing the instance, and (c) the instance has not been explicitly disposed (or else more samples have been received after it was disposed).
NotAliveDisposed = 2
indicates the instance was explicitly disposed by a DataWriter by means of the dispose operation.
NotAliveNoWriters = 4
indicates the instance has been declared as not-alive by the DataReader because it detected that there are no live DataWriter entities writing that instance
Implementations§
Trait Implementations§
source§impl BitAnd for InstanceState
impl BitAnd for InstanceState
source§impl BitFlag for InstanceState
impl BitFlag for InstanceState
source§impl BitOr for InstanceState
impl BitOr for InstanceState
source§impl BitXor for InstanceState
impl BitXor for InstanceState
source§impl Clone for InstanceState
impl Clone for InstanceState
source§fn clone(&self) -> InstanceState
fn clone(&self) -> InstanceState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceState
impl Debug for InstanceState
source§impl Not for InstanceState
impl Not for InstanceState
source§impl PartialEq for InstanceState
impl PartialEq for InstanceState
source§fn eq(&self, other: &InstanceState) -> bool
fn eq(&self, other: &InstanceState) -> bool
self
and other
values to be equal, and is used
by ==
.