pub struct CredentialManager {
pub registry: Arc<TaskRegistry>,
}Expand description
Credential Manager handles spawning/stopping adapter instances based on config
Fields§
§registry: Arc<TaskRegistry>Implementations§
Source§impl CredentialManager
impl CredentialManager
pub fn new() -> Self
Sourcepub async fn start_all(&self, config: &Config)
pub async fn start_all(&self, config: &Config)
Spawn instances for all active credentials in config
Sourcepub async fn spawn_task(&self, credential_id: String, config: CredentialConfig)
pub async fn spawn_task(&self, credential_id: String, config: CredentialConfig)
Spawn an adapter instance for a credential
Sourcepub async fn stop_task(&self, credential_id: &str)
pub async fn stop_task(&self, credential_id: &str)
Stop a specific credential’s adapter instance
Sourcepub async fn sync_with_config(&self, old_config: &Config, new_config: &Config)
pub async fn sync_with_config(&self, old_config: &Config, new_config: &Config)
Sync running instances with config
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CredentialManager
impl !RefUnwindSafe for CredentialManager
impl Send for CredentialManager
impl Sync for CredentialManager
impl Unpin for CredentialManager
impl UnsafeUnpin for CredentialManager
impl !UnwindSafe for CredentialManager
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