pub struct CloudStatusReport {Show 19 fields
pub url: String,
pub enabled: bool,
pub instance: Option<InstanceRecord>,
pub lease: Option<CloudLeaseV1>,
pub lease_state: Option<LeaseState>,
pub problem: Option<String>,
pub activity: ActivityRecord,
pub drafts_pending: Vec<DraftLine>,
pub drafts_failed: Vec<DraftLine>,
pub policy: PolicyState,
pub metrics_v2: Option<MetricsV2Status>,
pub receipts_off: Option<&'static str>,
pub receipts_queued: usize,
pub bus_controls: Vec<CloudStatusBusControlV1>,
pub bus_controls_inactive: Option<CloudBusControlsInactiveV1>,
pub unvouched_root: bool,
pub workers: usize,
pub workers_retiring: usize,
pub managed: Option<CloudStatusManagedV1>,
}Expand description
Everything lean-ctx cloud status shows.
Fields§
§url: String§enabled: bool§instance: Option<InstanceRecord>§lease: Option<CloudLeaseV1>§lease_state: Option<LeaseState>§problem: Option<String>Why the stored enrollment cannot be used, if it cannot.
activity: ActivityRecord§drafts_pending: Vec<DraftLine>Queued drafts (outbox id, summary, last error).
drafts_failed: Vec<DraftLine>Drafts Cloud refused for good; kept until removed.
policy: PolicyStateThe last verified policy bundle (and why a newer one was refused).
metrics_v2: Option<MetricsV2Status>Engine metrics v2 (None: no usable lease).
receipts_off: Option<&'static str>Why receipts are not sent (None: sent, or no usable lease).
receipts_queued: usizeReceipts waiting in the outbox.
bus_controls: Vec<CloudStatusBusControlV1>Bus controls in force (filled by the bus control module).
bus_controls_inactive: Option<CloudBusControlsInactiveV1>Why recorded bus controls do not apply right now.
unvouched_root: boolThe Cloud root is [cloud] root_key, vouched for by nobody.
workers: usizeDurable workers in the book (Cloud allows
WORKER_CAP per instance).
workers_retiring: usizeWorkers the book gave up that Cloud has not retired yet.
managed: Option<CloudStatusManagedV1>The machine’s managed configuration: each member and its carrier.
Implementations§
Source§impl CloudStatusReport
impl CloudStatusReport
pub fn connected(&self) -> bool
Sourcepub fn cli_status(&self) -> CloudCliStatusV1
pub fn cli_status(&self) -> CloudCliStatusV1
The cockpit shape: exactly six fields, nulls printed.
Trait Implementations§
Source§impl Clone for CloudStatusReport
impl Clone for CloudStatusReport
Auto Trait Implementations§
impl Forget for CloudStatusReport
impl Freeze for CloudStatusReport
impl Move for CloudStatusReport
impl RefUnwindSafe for CloudStatusReport
impl Send for CloudStatusReport
impl Sync for CloudStatusReport
impl Unpin for CloudStatusReport
impl UnsafeUnpin for CloudStatusReport
impl UnwindSafe for CloudStatusReport
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<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