pub struct Liveliness {
pub kind: LivelinessKind,
pub lease_duration: Duration,
}Expand description
LivelinessQosPolicy (DDS 1.4, 2.2.3.11).
Fields§
§kind: LivelinessKindThe kind.
lease_duration: DurationHow long an entity is alive without asserting it.
Implementations§
Source§impl Liveliness
impl Liveliness
Sourcepub fn from_parameter(v: &PlValues, p: &Parameter) -> Result<Self, DecodeError>
pub fn from_parameter(v: &PlValues, p: &Parameter) -> Result<Self, DecodeError>
Reads PID_LIVELINESS: { LivelinessQosPolicyKind kind; Duration_t lease_duration; }, the enum being a 32-bit ordinal.
Sourcepub fn to_parameter(&self, b: &PlBuilder) -> Parameter
pub fn to_parameter(&self, b: &PlBuilder) -> Parameter
Writes PID_LIVELINESS.
Trait Implementations§
Source§impl Clone for Liveliness
impl Clone for Liveliness
impl Copy for Liveliness
Source§impl Debug for Liveliness
impl Debug for Liveliness
Source§impl Default for Liveliness
impl Default for Liveliness
impl Eq for Liveliness
Source§impl Hash for Liveliness
impl Hash for Liveliness
Source§impl PartialEq for Liveliness
impl PartialEq for Liveliness
impl StructuralPartialEq for Liveliness
Auto Trait Implementations§
impl Forget for Liveliness
impl Freeze for Liveliness
impl Move for Liveliness
impl RefUnwindSafe for Liveliness
impl Send for Liveliness
impl Sync for Liveliness
impl Unpin for Liveliness
impl UnsafeUnpin for Liveliness
impl UnwindSafe for Liveliness
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