pub struct ServiceObjGroup {
pub name: String,
pub value: BTreeSet<ServiceObj>,
}Expand description
Ordered set of service objects sharing a human-friendly name.
Fields§
§name: String§value: BTreeSet<ServiceObj>Implementations§
Source§impl ServiceObjGroup
impl ServiceObjGroup
pub fn new(name: &str, value: BTreeSet<ServiceObj>) -> Result<Self, String>
pub fn add(&mut self, obj: ServiceObj) -> Result<(), String>
pub fn remove(&mut self, obj: &ServiceObj) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &ServiceObj>
Sourcepub fn services(&self) -> impl Iterator<Item = &TransportService>
pub fn services(&self) -> impl Iterator<Item = &TransportService>
Iterate over transport definitions directly.
Sourcepub fn get(&self, name: &str) -> Option<&ServiceObj>
pub fn get(&self, name: &str) -> Option<&ServiceObj>
Fetch a specific service object by name.
Trait Implementations§
Source§impl Clone for ServiceObjGroup
impl Clone for ServiceObjGroup
Source§fn clone(&self) -> ServiceObjGroup
fn clone(&self) -> ServiceObjGroup
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceObjGroup
impl Debug for ServiceObjGroup
Source§impl From<ServiceObjGroup> for BuilderEntry
impl From<ServiceObjGroup> for BuilderEntry
Source§fn from(group: ServiceObjGroup) -> Self
fn from(group: ServiceObjGroup) -> Self
Converts to this type from the input type.
Source§impl Ord for ServiceObjGroup
impl Ord for ServiceObjGroup
Source§fn cmp(&self, other: &ServiceObjGroup) -> Ordering
fn cmp(&self, other: &ServiceObjGroup) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServiceObjGroup
impl PartialEq for ServiceObjGroup
Source§impl PartialOrd for ServiceObjGroup
impl PartialOrd for ServiceObjGroup
impl Eq for ServiceObjGroup
impl StructuralPartialEq for ServiceObjGroup
Auto Trait Implementations§
impl Freeze for ServiceObjGroup
impl RefUnwindSafe for ServiceObjGroup
impl Send for ServiceObjGroup
impl Sync for ServiceObjGroup
impl Unpin for ServiceObjGroup
impl UnwindSafe for ServiceObjGroup
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