pub struct InjectedSecretSnapshot { /* private fields */ }Expand description
Immutable set of Injected secrets resolved once during process bootstrap.
Implementations§
Source§impl InjectedSecretSnapshot
impl InjectedSecretSnapshot
Sourcepub fn load(
requirements: impl IntoIterator<Item = InjectedSecretRequirement>,
) -> Result<Self, InjectedSecretError>
pub fn load( requirements: impl IntoIterator<Item = InjectedSecretRequirement>, ) -> Result<Self, InjectedSecretError>
Resolves the complete required set beneath the fixed production root.
pub fn get( &self, reference: &InjectedSecretReference, ) -> Option<&ResolvedInjectedSecret>
pub fn iter(&self) -> impl Iterator<Item = &ResolvedInjectedSecret>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn capture(
reference: &InjectedSecretReference,
) -> Result<ResolvedInjectedSecret, InjectedSecretError>
pub fn capture( reference: &InjectedSecretReference, ) -> Result<ResolvedInjectedSecret, InjectedSecretError>
Captures one projection without assigning an expected version. This is used at process bootstrap when a later selected path owns the version check but must never cause a filesystem reread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InjectedSecretSnapshot
impl RefUnwindSafe for InjectedSecretSnapshot
impl Send for InjectedSecretSnapshot
impl Sync for InjectedSecretSnapshot
impl Unpin for InjectedSecretSnapshot
impl UnsafeUnpin for InjectedSecretSnapshot
impl UnwindSafe for InjectedSecretSnapshot
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