pub struct ProtocolDriverRegistry { /* private fields */ }Expand description
Shared registry for protocol drivers.
Implementations§
Source§impl ProtocolDriverRegistry
impl ProtocolDriverRegistry
Sourcepub fn register(&mut self, driver: impl ProtocolDriver + 'static)
pub fn register(&mut self, driver: impl ProtocolDriver + 'static)
Registers a driver by its descriptor key.
Sourcepub fn extend(&mut self, other: &Self)
pub fn extend(&mut self, other: &Self)
Extends the registry with all entries from another registry.
Sourcepub fn descriptors(&self) -> Vec<ProtocolDescriptor>
pub fn descriptors(&self) -> Vec<ProtocolDescriptor>
Returns the registered descriptors in stable order.
Sourcepub fn catalog(&self) -> Vec<ProtocolCatalogEntry>
pub fn catalog(&self) -> Vec<ProtocolCatalogEntry>
Returns catalog entries with driver features in stable order.
Trait Implementations§
Source§impl Clone for ProtocolDriverRegistry
impl Clone for ProtocolDriverRegistry
Source§fn clone(&self) -> ProtocolDriverRegistry
fn clone(&self) -> ProtocolDriverRegistry
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 Default for ProtocolDriverRegistry
impl Default for ProtocolDriverRegistry
Source§fn default() -> ProtocolDriverRegistry
fn default() -> ProtocolDriverRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProtocolDriverRegistry
impl !RefUnwindSafe for ProtocolDriverRegistry
impl Send for ProtocolDriverRegistry
impl Sync for ProtocolDriverRegistry
impl Unpin for ProtocolDriverRegistry
impl UnsafeUnpin for ProtocolDriverRegistry
impl !UnwindSafe for ProtocolDriverRegistry
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