pub struct AdapterRegistry { /* private fields */ }Expand description
Validated registry keyed by adapter family and implementation identity.
The family is part of the key: one stable adapter ID may intentionally implement several independent families without turning them into a blanket provider-support claim.
Implementations§
Source§impl AdapterRegistry
impl AdapterRegistry
pub fn new( descriptors: impl IntoIterator<Item = AdapterDescriptor>, ) -> Result<Self, AdapterRegistryError>
pub fn insert( &mut self, descriptor: AdapterDescriptor, ) -> Result<(), AdapterRegistryError>
pub fn get( &self, family: AdapterFamily, id: &AdapterId, ) -> Option<&AdapterDescriptor>
pub fn binding( &self, family: AdapterFamily, id: &str, ) -> Option<&AdapterBinding>
pub fn supports(&self, family: AdapterFamily, binding: &AdapterBinding) -> bool
pub fn iter(&self) -> impl ExactSizeIterator<Item = &AdapterDescriptor>
Trait Implementations§
Source§impl Clone for AdapterRegistry
impl Clone for AdapterRegistry
Source§impl Debug for AdapterRegistry
impl Debug for AdapterRegistry
Auto Trait Implementations§
impl Freeze for AdapterRegistry
impl RefUnwindSafe for AdapterRegistry
impl Send for AdapterRegistry
impl Sync for AdapterRegistry
impl Unpin for AdapterRegistry
impl UnsafeUnpin for AdapterRegistry
impl UnwindSafe for AdapterRegistry
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