pub struct DynamicFileCatalog {
inner: Arc<dyn CatalogProviderList>,
factory: Arc<dyn UrlTableFactory>,
}Expand description
Wrap another catalog provider list
Fields§
§inner: Arc<dyn CatalogProviderList>§factory: Arc<dyn UrlTableFactory>Implementations§
Source§impl DynamicFileCatalog
impl DynamicFileCatalog
pub fn new( inner: Arc<dyn CatalogProviderList>, factory: Arc<dyn UrlTableFactory>, ) -> DynamicFileCatalog
Trait Implementations§
Source§impl CatalogProviderList for DynamicFileCatalog
impl CatalogProviderList for DynamicFileCatalog
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Returns the catalog list as
Any
so that it can be downcast to a specific implementation.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§fn catalog_names(&self) -> Vec<String>
fn catalog_names(&self) -> Vec<String>
Retrieves the list of available catalog names
Auto Trait Implementations§
impl Freeze for DynamicFileCatalog
impl !RefUnwindSafe for DynamicFileCatalog
impl Send for DynamicFileCatalog
impl Sync for DynamicFileCatalog
impl Unpin for DynamicFileCatalog
impl !UnwindSafe for DynamicFileCatalog
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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