pub struct PropertyQosPolicy { /* private fields */ }Expand description
Ordered list of name/value properties (DDS PropertyQosPolicy, string
properties only — binary properties are not yet modeled here).
use zerodds_qos::PropertyQosPolicy;
let p = PropertyQosPolicy::new()
.with("dds.sec.log.plugin", "stderr,jsonl")
.with("dds.sec.log.level", "Notice");
assert_eq!(p.get("dds.sec.log.plugin"), Some("stderr,jsonl"));
assert_eq!(p.len(), 2);Implementations§
Source§impl PropertyQosPolicy
impl PropertyQosPolicy
Sourcepub fn new() -> PropertyQosPolicy
pub fn new() -> PropertyQosPolicy
Empty policy.
Sourcepub fn with(
self,
name: impl Into<String>,
value: impl Into<String>,
) -> PropertyQosPolicy
pub fn with( self, name: impl Into<String>, value: impl Into<String>, ) -> PropertyQosPolicy
Builder-style insert/update. Last value wins for a repeated name.
Sourcepub fn set(&mut self, name: impl Into<String>, value: impl Into<String>)
pub fn set(&mut self, name: impl Into<String>, value: impl Into<String>)
Insert or overwrite a property by name.
Trait Implementations§
Source§impl Clone for PropertyQosPolicy
impl Clone for PropertyQosPolicy
Source§fn clone(&self) -> PropertyQosPolicy
fn clone(&self) -> PropertyQosPolicy
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 moreSource§impl Debug for PropertyQosPolicy
impl Debug for PropertyQosPolicy
Source§impl Default for PropertyQosPolicy
impl Default for PropertyQosPolicy
Source§fn default() -> PropertyQosPolicy
fn default() -> PropertyQosPolicy
Returns the “default value” for a type. Read more
impl Eq for PropertyQosPolicy
Source§impl PartialEq for PropertyQosPolicy
impl PartialEq for PropertyQosPolicy
impl StructuralPartialEq for PropertyQosPolicy
Auto Trait Implementations§
impl Freeze for PropertyQosPolicy
impl RefUnwindSafe for PropertyQosPolicy
impl Send for PropertyQosPolicy
impl Sync for PropertyQosPolicy
impl Unpin for PropertyQosPolicy
impl UnsafeUnpin for PropertyQosPolicy
impl UnwindSafe for PropertyQosPolicy
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