pub struct Registry<'runtime> { /* private fields */ }Implementations§
Source§impl<'runtime> Registry<'runtime>
impl<'runtime> Registry<'runtime>
pub fn new(adapters: Vec<&'runtime dyn BackendAdapter>) -> Self
pub fn get( &self, name: &str, ) -> Result<&'runtime dyn BackendAdapter, BackendError>
Auto Trait Implementations§
impl<'runtime> !RefUnwindSafe for Registry<'runtime>
impl<'runtime> !UnwindSafe for Registry<'runtime>
impl<'runtime> Forget for Registry<'runtime>
impl<'runtime> Freeze for Registry<'runtime>
impl<'runtime> Send for Registry<'runtime>
impl<'runtime> Sync for Registry<'runtime>
impl<'runtime> Unpin for Registry<'runtime>
impl<'runtime> UnsafeUnpin for Registry<'runtime>
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