pub enum CredentialKeyState {
Active,
Retiring,
Revoked,
Unknown,
}Expand description
A credential key’s lifecycle state.
Buffered off the wire enum so downstream code (the CLI’s edge verbs)
matches on a closed Rust enum instead of taking a polyc-proto dependency
of its own — this crate is the one place that talks connectrpc/buffa/proto
directly on this path, mirroring how CompactionReason already buffers
off its own wire enum.
Variants§
Active
Verifies now — the credential’s currently-presented key.
Retiring
Still verifies, but is being phased out. The rotation runbook’s step
4 watches this state’s verification traffic go quiet before step 5
(CredentialDialer::retire_credential_key) retires it.
Revoked
Never verifies again.
Unknown
A lifecycle value this client doesn’t recognize yet. Reported distinctly rather than guessed at, since a mutation must never assert a state it can’t read.
Trait Implementations§
Source§impl Clone for CredentialKeyState
impl Clone for CredentialKeyState
Source§fn clone(&self) -> CredentialKeyState
fn clone(&self) -> CredentialKeyState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CredentialKeyState
Source§impl Debug for CredentialKeyState
impl Debug for CredentialKeyState
impl Eq for CredentialKeyState
Source§impl From<EnumValue<KeyState>> for CredentialKeyState
impl From<EnumValue<KeyState>> for CredentialKeyState
Source§fn from(state: EnumValue<WireCredentialKeyState>) -> Self
fn from(state: EnumValue<WireCredentialKeyState>) -> Self
Source§impl PartialEq for CredentialKeyState
impl PartialEq for CredentialKeyState
impl StructuralPartialEq for CredentialKeyState
Auto Trait Implementations§
impl Freeze for CredentialKeyState
impl RefUnwindSafe for CredentialKeyState
impl Send for CredentialKeyState
impl Sync for CredentialKeyState
impl Unpin for CredentialKeyState
impl UnsafeUnpin for CredentialKeyState
impl UnwindSafe for CredentialKeyState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request