pub struct DriverRegistry { /* private fields */ }Implementations§
Source§impl DriverRegistry
impl DriverRegistry
pub fn new() -> Self
pub fn register<F>(&mut self, factory: F)where
F: DriverFactory + 'static,
pub fn get(&self, db_type: DatabaseType) -> Option<&dyn DriverFactory>
pub fn create_driver( &self, db_type: DatabaseType, ) -> Option<Box<dyn DatabaseDriver>>
Auto Trait Implementations§
impl Freeze for DriverRegistry
impl !RefUnwindSafe for DriverRegistry
impl Send for DriverRegistry
impl Sync for DriverRegistry
impl Unpin for DriverRegistry
impl UnsafeUnpin for DriverRegistry
impl !UnwindSafe for DriverRegistry
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