pub struct CloudStatusReport {Show 20 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 account_email: Option<String>,
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).
account_email: Option<String>rc3-9: the linked account’s sign-in address (E44 account.email).
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 CloudStatusReportwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<CloudRight>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<(String, String, Option<String>)>: Freeze,
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
&'static str: Freeze,
PhantomData<CloudStatusBusControlV1>: Freeze,
PhantomData<CloudStatusManagedMemberV1>: Freeze,
impl Move for CloudStatusReport
impl RefUnwindSafe for CloudStatusReport
impl Send for CloudStatusReportwhere
RawVecInner: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NodeRef<Owned, String, u64, LeafOrInternal>: Send,
BoxRaw<(String, u64)>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
&'static str: Send,
impl Sync for CloudStatusReport
impl Unpin for CloudStatusReport
impl UnsafeUnpin for CloudStatusReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<CloudRight>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<(String, String, Option<String>)>: UnsafeUnpin,
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<CloudStatusBusControlV1>: UnsafeUnpin,
PhantomData<CloudStatusManagedMemberV1>: UnsafeUnpin,
impl UnwindSafe for CloudStatusReportwhere
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, u64>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
&'static str: UnwindSafe,
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