pub struct TableRegistry { /* private fields */ }Expand description
Registry of named table backends with one active default.
Implementations§
Source§impl TableRegistry
impl TableRegistry
Sourcepub fn register(&mut self, backend: Arc<dyn TableBackend>)
pub fn register(&mut self, backend: Arc<dyn TableBackend>)
Registers a backend under its own name, replacing any prior one.
Sourcepub fn set_active(&mut self, name: &str) -> Result<()>
pub fn set_active(&mut self, name: &str) -> Result<()>
Selects the active backend by name, erroring if it is unknown.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TableRegistry
impl !UnwindSafe for TableRegistry
impl Freeze for TableRegistry
impl Send for TableRegistry
impl Sync for TableRegistry
impl Unpin for TableRegistry
impl UnsafeUnpin for TableRegistry
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