pub enum ConformanceClass {
A,
B,
C,
}Expand description
Interoperability conformance class (gbp-interop-profile §2).
Variants§
A
Class A: GBP + GSP (mandatory minimum).
B
Class B: Class A + GTP (text messaging).
C
Class C: Class B + GAP (audio).
Implementations§
Source§impl ConformanceClass
impl ConformanceClass
Sourcepub fn tokens(self) -> &'static [&'static str]
pub fn tokens(self) -> &'static [&'static str]
Returns all capability tokens that must be advertised for this class (including tokens for lower classes — each class implies the ones below).
Sourcepub fn from_tokens<'a>(
tokens: impl IntoIterator<Item = &'a str>,
) -> Option<Self>
pub fn from_tokens<'a>( tokens: impl IntoIterator<Item = &'a str>, ) -> Option<Self>
Infers the highest conformance class from a set of capability tokens.
Returns None if not even Class A is present.
Trait Implementations§
Source§impl Clone for ConformanceClass
impl Clone for ConformanceClass
Source§fn clone(&self) -> ConformanceClass
fn clone(&self) -> ConformanceClass
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 moreimpl Copy for ConformanceClass
Source§impl Debug for ConformanceClass
impl Debug for ConformanceClass
Source§impl Display for ConformanceClass
impl Display for ConformanceClass
impl Eq for ConformanceClass
Source§impl Hash for ConformanceClass
impl Hash for ConformanceClass
Source§impl Ord for ConformanceClass
impl Ord for ConformanceClass
Source§fn cmp(&self, other: &ConformanceClass) -> Ordering
fn cmp(&self, other: &ConformanceClass) -> Ordering
1.21.0 (const: unstable) · 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 ConformanceClass
impl PartialEq for ConformanceClass
Source§fn eq(&self, other: &ConformanceClass) -> bool
fn eq(&self, other: &ConformanceClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConformanceClass
impl PartialOrd for ConformanceClass
impl StructuralPartialEq for ConformanceClass
Auto Trait Implementations§
impl Freeze for ConformanceClass
impl RefUnwindSafe for ConformanceClass
impl Send for ConformanceClass
impl Sync for ConformanceClass
impl Unpin for ConformanceClass
impl UnsafeUnpin for ConformanceClass
impl UnwindSafe for ConformanceClass
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