pub enum ManifestStatus {
Absent,
Present {
managed: usize,
},
Corrupt {
detail: String,
},
}Expand description
What the deployed-agent ledger looks like right now.
Why: tcode paths show answers “which root wins”; after #2074 it must also
answer “is there a deployed roster, and is its ledger readable” — the
question an operator debugging a stale or hand-edited agent asks next.
What: absent (nothing deployed yet), present with a managed-file count, or
corrupt with the underlying detail.
Test: manifest_status_reports_absent_then_present.
Variants§
Absent
No ledger file exists — the roster has not been deployed here.
Present
The ledger parsed; managed files are tracked.
Corrupt
The ledger exists but could not be read.
Implementations§
Source§impl ManifestStatus
impl ManifestStatus
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
A stable lowercase token for logs, JSON diagnostics, and CLI output.
Why: the human and JSON renderings of tcode paths show must agree, and
a Debug rendering is not a wire contract.
What: "absent", "present", "corrupt".
Test: manifest_status_reports_absent_then_present.
Trait Implementations§
Source§impl Clone for ManifestStatus
impl Clone for ManifestStatus
Source§impl Debug for ManifestStatus
impl Debug for ManifestStatus
impl Eq for ManifestStatus
Source§impl PartialEq for ManifestStatus
impl PartialEq for ManifestStatus
impl StructuralPartialEq for ManifestStatus
Auto Trait Implementations§
impl Freeze for ManifestStatus
impl RefUnwindSafe for ManifestStatus
impl Send for ManifestStatus
impl Sync for ManifestStatus
impl Unpin for ManifestStatus
impl UnsafeUnpin for ManifestStatus
impl UnwindSafe for ManifestStatus
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 more