Skip to main content

CloudStatusReport

Struct CloudStatusReport 

Source
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: PolicyState

The 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: usize

Receipts 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: bool

The Cloud root is [cloud] root_key, vouched for by nobody.

§workers: usize

Durable 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: usize

Workers 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

Source

pub fn connected(&self) -> bool

Source

pub fn cli_status(&self) -> CloudCliStatusV1

The cockpit shape: exactly six fields, nulls printed.

Trait Implementations§

Source§

impl Clone for CloudStatusReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CloudStatusReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for CloudStatusReport

§

impl Freeze for CloudStatusReport

§

impl Move for CloudStatusReport

§

impl RefUnwindSafe for CloudStatusReport

§

impl Send for CloudStatusReport
where 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
where RawVecInner: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, NodeRef<Owned, String, u64, LeafOrInternal>: Sync, BoxRaw<(String, u64)>: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync,

§

impl Unpin for CloudStatusReport
where *const u8 is !null: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin, *const LeafNode<String, u64> is !null: Unpin, Box<(String, u64)>: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin, &'static str: Unpin,

§

impl UnsafeUnpin for CloudStatusReport

§

impl UnwindSafe for CloudStatusReport

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more