pub struct RuntimeDatasourceCatalog { /* private fields */ }Implementations§
Source§impl RuntimeDatasourceCatalog
impl RuntimeDatasourceCatalog
pub fn new(configs: HashMap<String, DatasourceConfig>) -> Self
pub fn with_health_registry(self, registry: Arc<HealthCheckRegistry>) -> Self
Trait Implementations§
Source§impl DatasourceCatalog for RuntimeDatasourceCatalog
impl DatasourceCatalog for RuntimeDatasourceCatalog
fn get_config(&self, name: &str) -> Option<DatasourceConfig>
fn get_pool<'a>(&'a self, name: &'a str) -> GetPoolFuture<'a>
fn register_factory( &self, kind: &str, factory: Arc<dyn PoolFactory>, ) -> Result<(), CamelError>
Source§fn close_all(&self) -> CloseAllFuture<'_>
fn close_all(&self) -> CloseAllFuture<'_>
Close every initialized pool. The default is a no-op; the runtime
catalog overrides it so a boot teardown deterministically drains its
datasource connections (bd rc-25lup.4). Close MAY run again after a
completed run; implementors keep it safe to re-run.
Auto Trait Implementations§
impl !Freeze for RuntimeDatasourceCatalog
impl !RefUnwindSafe for RuntimeDatasourceCatalog
impl !UnwindSafe for RuntimeDatasourceCatalog
impl Send for RuntimeDatasourceCatalog
impl Sync for RuntimeDatasourceCatalog
impl Unpin for RuntimeDatasourceCatalog
impl UnsafeUnpin for RuntimeDatasourceCatalog
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