pub struct MultiVaultManager { /* private fields */ }Expand description
Multi-vault manager coordinating multiple vaults
Implementations§
Source§impl MultiVaultManager
impl MultiVaultManager
Sourcepub fn new(config: ServerConfig) -> Result<MultiVaultManager, Error>
pub fn new(config: ServerConfig) -> Result<MultiVaultManager, Error>
Create a new multi-vault manager from server configuration
Sourcepub fn empty(config: ServerConfig) -> Result<MultiVaultManager, Error>
pub fn empty(config: ServerConfig) -> Result<MultiVaultManager, Error>
Create an empty multi-vault manager (vault-agnostic server startup)
Sourcepub async fn add_vault(&self, vault_config: VaultConfig) -> Result<(), Error>
pub async fn add_vault(&self, vault_config: VaultConfig) -> Result<(), Error>
Add a new vault to the manager
Sourcepub async fn remove_vault(&self, name: &str) -> Result<(), Error>
pub async fn remove_vault(&self, name: &str) -> Result<(), Error>
Remove a vault from the manager
Sourcepub async fn get_vault_config(&self, name: &str) -> Result<VaultConfig, Error>
pub async fn get_vault_config(&self, name: &str) -> Result<VaultConfig, Error>
Get configuration for a specific vault
Sourcepub async fn get_active_vault(&self) -> String
pub async fn get_active_vault(&self) -> String
Get the active/default vault name
Sourcepub async fn set_active_vault(&self, name: &str) -> Result<(), Error>
pub async fn set_active_vault(&self, name: &str) -> Result<(), Error>
Set a different vault as the active vault
Sourcepub async fn get_effective_vault_settings(
&self,
vault_name: &str,
) -> Result<VaultConfig, Error>
pub async fn get_effective_vault_settings( &self, vault_name: &str, ) -> Result<VaultConfig, Error>
Get effective settings for a vault (inherited + overridden)
Sourcepub async fn vault_count(&self) -> usize
pub async fn vault_count(&self) -> usize
Get vault count
Sourcepub async fn vault_exists(&self, name: &str) -> bool
pub async fn vault_exists(&self, name: &str) -> bool
Check if a vault exists
Sourcepub async fn get_active_vault_config(&self) -> Result<VaultConfig, Error>
pub async fn get_active_vault_config(&self) -> Result<VaultConfig, Error>
Get the active vault config
Trait Implementations§
Source§impl Clone for MultiVaultManager
impl Clone for MultiVaultManager
Source§fn clone(&self) -> MultiVaultManager
fn clone(&self) -> MultiVaultManager
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiVaultManager
impl !RefUnwindSafe for MultiVaultManager
impl Send for MultiVaultManager
impl Sync for MultiVaultManager
impl Unpin for MultiVaultManager
impl !UnwindSafe for MultiVaultManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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