#[non_exhaustive]pub struct WritableBackendRegistration {
pub name: &'static str,
pub factory: fn(&SecretUri) -> Result<Arc<dyn WritableSecretStore>, SecretError>,
}Expand description
Registration entry for a WritableSecretStore backend.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strBackend scheme name.
factory: fn(&SecretUri) -> Result<Arc<dyn WritableSecretStore>, SecretError>Factory function: construct a writable backend from a pre-parsed SecretUri.
Implementations§
Source§impl WritableBackendRegistration
impl WritableBackendRegistration
Sourcepub const fn new(
name: &'static str,
factory: fn(&SecretUri) -> Result<Arc<dyn WritableSecretStore>, SecretError>,
) -> Self
pub const fn new( name: &'static str, factory: fn(&SecretUri) -> Result<Arc<dyn WritableSecretStore>, SecretError>, ) -> Self
Create a new registration entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WritableBackendRegistration
impl RefUnwindSafe for WritableBackendRegistration
impl Send for WritableBackendRegistration
impl Sync for WritableBackendRegistration
impl Unpin for WritableBackendRegistration
impl UnsafeUnpin for WritableBackendRegistration
impl UnwindSafe for WritableBackendRegistration
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