pub enum SourceStatus {
Available,
Locked,
NotInstalled,
Error(String),
}Expand description
Snapshot of a source’s connectivity at the moment of the call.
Returned by SecretSource::is_available. The router uses it
to decide whether to retry the default route against a fallback
(per ADR-021 §2 step 3) and doctor uses it to render the
per-source health check.
Variants§
Available
Backend is reachable and ready to answer queries.
Locked
Backend is reachable but needs an unlock step before use (e.g. local-vault is locked, 1Password account is signed out).
NotInstalled
The CLI / SDK / system service this source depends on is
not present at all (e.g. op not installed).
Error(String)
Anything else — surfaced verbatim to doctor.
Implementations§
Source§impl SourceStatus
impl SourceStatus
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Convenience — true only when the source is fully
operational. Treats Locked / NotInstalled / Error as
not-available.
Trait Implementations§
Source§impl Clone for SourceStatus
impl Clone for SourceStatus
Source§fn clone(&self) -> SourceStatus
fn clone(&self) -> SourceStatus
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 moreSource§impl Debug for SourceStatus
impl Debug for SourceStatus
impl Eq for SourceStatus
Source§impl PartialEq for SourceStatus
impl PartialEq for SourceStatus
Source§fn eq(&self, other: &SourceStatus) -> bool
fn eq(&self, other: &SourceStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceStatus
Auto Trait Implementations§
impl Freeze for SourceStatus
impl RefUnwindSafe for SourceStatus
impl Send for SourceStatus
impl Sync for SourceStatus
impl Unpin for SourceStatus
impl UnsafeUnpin for SourceStatus
impl UnwindSafe for SourceStatus
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<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
Compare self to
key and return true if they are equal.