pub struct ConnectionResolver { /* private fields */ }Expand description
Turns a configured connection id into a live ProviderConnection.
Implementations§
Source§impl ConnectionResolver
impl ConnectionResolver
pub fn new( config: Arc<ConfigService>, registry: Arc<ProviderRegistry>, secrets: Arc<dyn SecretStore>, ) -> Self
pub async fn resolve( &self, connection_id: &str, ) -> Result<Option<Arc<dyn ProviderConnection>>>
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionResolver
impl !UnwindSafe for ConnectionResolver
impl Freeze for ConnectionResolver
impl Send for ConnectionResolver
impl Sync for ConnectionResolver
impl Unpin for ConnectionResolver
impl UnsafeUnpin for ConnectionResolver
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