pub enum KeysetLoadOutcome {
NotConfigured,
Verified(KeysetVerifiedDetails),
Failed(KeysetVerificationFailedDetails),
}Expand description
Outcome of the optional CELLOS_TRUST_KEYSET_PATH envelope verification.
Returned by load_and_verify_trust_keyset_from_env. The caller (typically
build_supervisor) is responsible for emitting the resulting CloudEvent
through whichever sink is wired up.
Variants§
NotConfigured
CELLOS_TRUST_KEYSET_PATH was unset — no verification attempted.
Verified(KeysetVerifiedDetails)
Envelope verified successfully against the supplied keyring.
Failed(KeysetVerificationFailedDetails)
Envelope load or verification failed in fail-open mode (the supervisor
continues to run; an event surfaces the degraded posture). Fail-closed
errors are returned from the call as Err and never surface here.
Trait Implementations§
Source§impl Clone for KeysetLoadOutcome
impl Clone for KeysetLoadOutcome
Source§fn clone(&self) -> KeysetLoadOutcome
fn clone(&self) -> KeysetLoadOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§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 KeysetLoadOutcome
impl RefUnwindSafe for KeysetLoadOutcome
impl Send for KeysetLoadOutcome
impl Sync for KeysetLoadOutcome
impl Unpin for KeysetLoadOutcome
impl UnsafeUnpin for KeysetLoadOutcome
impl UnwindSafe for KeysetLoadOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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