pub struct DriverManager { /* private fields */ }
Implementations§
Source§impl DriverManager
impl DriverManager
pub fn instance() -> Result<Arc<Mutex<Self>>, Error>
pub async fn init(extension_paths: &[String]) -> Result<(), Error>
pub async fn register_driver( &mut self, name: &str, driver: Arc<dyn NGDriver>, ) -> Result<(), Error>
pub async fn get_driver(&self, name: &str) -> Option<Arc<dyn NGDriver>>
Auto Trait Implementations§
impl Freeze for DriverManager
impl !RefUnwindSafe for DriverManager
impl Send for DriverManager
impl Sync for DriverManager
impl Unpin for DriverManager
impl !UnwindSafe for DriverManager
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