pub struct FixedCatalogProviderList { /* private fields */ }Available on crate feature
integration-tests only.Expand description
This catalog provider list is intended only for unit tests. It prepopulates with one catalog and only allows for catalogs named after four colors.
Trait Implementations§
Source§impl CatalogProviderList for FixedCatalogProviderList
impl CatalogProviderList for FixedCatalogProviderList
Source§fn catalog_names(&self) -> Vec<String>
fn catalog_names(&self) -> Vec<String>
Retrieves the list of available catalog names
Source§fn catalog(&self, name: &str) -> Option<Arc<dyn CatalogProvider>>
fn catalog(&self, name: &str) -> Option<Arc<dyn CatalogProvider>>
Retrieves a specific catalog by name, provided it exists.
Source§fn register_catalog(
&self,
name: String,
catalog: Arc<dyn CatalogProvider>,
) -> Option<Arc<dyn CatalogProvider>>
fn register_catalog( &self, name: String, catalog: Arc<dyn CatalogProvider>, ) -> Option<Arc<dyn CatalogProvider>>
Adds a new catalog to this catalog list
If a catalog of the same name existed before, it is replaced in the list and returned.
Source§impl Debug for FixedCatalogProviderList
impl Debug for FixedCatalogProviderList
Auto Trait Implementations§
impl !RefUnwindSafe for FixedCatalogProviderList
impl !UnwindSafe for FixedCatalogProviderList
impl Freeze for FixedCatalogProviderList
impl Send for FixedCatalogProviderList
impl Sync for FixedCatalogProviderList
impl Unpin for FixedCatalogProviderList
impl UnsafeUnpin for FixedCatalogProviderList
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more