Skip to main content

Resolution

Enum Resolution 

Source
pub enum Resolution<'a> {
    Found(&'a str),
    MissingKey,
    MissingNamespace,
}
Expand description

The outcome of resolving one SecretRef.

Self::MissingKey and Self::MissingNamespace are kept apart because they need different remedies: a pair no dog has pushed is a dog that has not reported yet, which a retry fixes, while a missing key is a person’s to set.

Debug does not leak a value: Self::Found prints as Found(..).

Variants§

§

Found(&'a str)

The resolved value.

§

MissingKey

The operator’s store holds nothing for this key, or a provider has pushed this namespace for this environment and that push lacks the key.

§

MissingNamespace

No provider dog has pushed this namespace for this environment yet.

Trait Implementations§

Source§

impl Debug for Resolution<'_>

Redacted (IR-41): Resolution::Found carries a secret’s value.

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Resolution<'a>

§

impl<'a> RefUnwindSafe for Resolution<'a>

§

impl<'a> Send for Resolution<'a>

§

impl<'a> Sync for Resolution<'a>

§

impl<'a> Unpin for Resolution<'a>

§

impl<'a> UnsafeUnpin for Resolution<'a>

§

impl<'a> UnwindSafe for Resolution<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.