pub struct QosLibrary {
pub name: String,
pub profiles: Vec<QosProfile>,
}Expand description
Container for 1+ QoS profiles per DDS-XML 1.0 §7.3.2.
Multiple libraries may appear per document; each library carries
a name attribute. Lookups across libraries happen via the
2-segment path library::profile.
Fields§
§name: StringName of the library (<qos_library name="…"> attribute).
profiles: Vec<QosProfile>Profiles in this library, in document order.
Implementations§
Source§impl QosLibrary
impl QosLibrary
Sourcepub fn profile(&self, name: &str) -> Option<&QosProfile>
pub fn profile(&self, name: &str) -> Option<&QosProfile>
Looks up a profile within this library by name.
Trait Implementations§
Source§impl Clone for QosLibrary
impl Clone for QosLibrary
Source§fn clone(&self) -> QosLibrary
fn clone(&self) -> QosLibrary
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 QosLibrary
impl Debug for QosLibrary
impl Eq for QosLibrary
Source§impl PartialEq for QosLibrary
impl PartialEq for QosLibrary
Source§fn eq(&self, other: &QosLibrary) -> bool
fn eq(&self, other: &QosLibrary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QosLibrary
Auto Trait Implementations§
impl Freeze for QosLibrary
impl RefUnwindSafe for QosLibrary
impl Send for QosLibrary
impl Sync for QosLibrary
impl Unpin for QosLibrary
impl UnsafeUnpin for QosLibrary
impl UnwindSafe for QosLibrary
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