pub struct BridgeProfileBook { /* private fields */ }Expand description
Registry of BRIDGE profile specifications.
Implementations§
Source§impl BridgeProfileBook
impl BridgeProfileBook
Sourcepub fn register(&mut self, spec: BridgeProfileSpec)
pub fn register(&mut self, spec: BridgeProfileSpec)
Registers a profile spec.
Sourcepub fn spec(&self, id: &Symbol) -> Option<&BridgeProfileSpec>
pub fn spec(&self, id: &Symbol) -> Option<&BridgeProfileSpec>
Returns the registered profile spec for id.
Sourcepub fn specs(&self) -> impl Iterator<Item = &BridgeProfileSpec>
pub fn specs(&self) -> impl Iterator<Item = &BridgeProfileSpec>
Returns all registered profile specs.
Sourcepub fn matching_profiles(&self, packet: &BridgePacket) -> Vec<Symbol>
pub fn matching_profiles(&self, packet: &BridgePacket) -> Vec<Symbol>
Returns the matching profile ids for packet.
Trait Implementations§
Source§impl Clone for BridgeProfileBook
impl Clone for BridgeProfileBook
Source§fn clone(&self) -> BridgeProfileBook
fn clone(&self) -> BridgeProfileBook
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 BridgeProfileBook
impl Debug for BridgeProfileBook
Source§impl Default for BridgeProfileBook
impl Default for BridgeProfileBook
Source§fn default() -> BridgeProfileBook
fn default() -> BridgeProfileBook
Returns the “default value” for a type. Read more
impl Eq for BridgeProfileBook
Source§impl PartialEq for BridgeProfileBook
impl PartialEq for BridgeProfileBook
impl StructuralPartialEq for BridgeProfileBook
Auto Trait Implementations§
impl Freeze for BridgeProfileBook
impl RefUnwindSafe for BridgeProfileBook
impl Send for BridgeProfileBook
impl Sync for BridgeProfileBook
impl Unpin for BridgeProfileBook
impl UnsafeUnpin for BridgeProfileBook
impl UnwindSafe for BridgeProfileBook
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