pub struct ListRegistry { /* private fields */ }Expand description
Registry of named list backends with one active default.
Implementations§
Source§impl ListRegistry
impl ListRegistry
Sourcepub fn register(&mut self, backend: Arc<dyn ListBackend>)
pub fn register(&mut self, backend: Arc<dyn ListBackend>)
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 ListRegistry
impl !UnwindSafe for ListRegistry
impl Freeze for ListRegistry
impl Send for ListRegistry
impl Sync for ListRegistry
impl Unpin for ListRegistry
impl UnsafeUnpin for ListRegistry
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