pub struct StatusLine {
pub mode: Option<ModeView>,
pub spend: Option<SpendView>,
pub quiet: Option<QuietView>,
pub decisions: u32,
pub stopped: bool,
pub stopped_text: Option<String>,
pub host_utc_offset_minutes: Option<i32>,
pub serves: Vec<Served>,
}Expand description
The status line every surface shows (spec 3.3 §5.1, §6): the mode word, spend against the daily limit, quiet time and the count of decisions.
Fields§
§mode: Option<ModeView>The mode, when the source runs a harness.
spend: Option<SpendView>Spend, when the source knows it.
quiet: Option<QuietView>Quiet time, when set.
decisions: u32Decisions waiting for the caller: the filled badge.
stopped: boolEverything is stopped.
stopped_text: Option<String>“All agents stopped”, while stopped.
host_utc_offset_minutes: Option<i32>Minutes east of UTC of the server’s time zone now: the kernel reads a quiet window that carries no offset of its own there, so a page in another zone reads it there too (spec 3.3 §5.1).
serves: Vec<Served>The parts of the home this server serves beside the engine’s own routes, in order: the web home reads no route of a part it leaves out, so a server built or mounted without one answers no request for it. Absent only from a server older than this field.
Trait Implementations§
Source§impl Clone for StatusLine
impl Clone for StatusLine
Source§impl Debug for StatusLine
impl Debug for StatusLine
Source§impl<'de> Deserialize<'de> for StatusLine
impl<'de> Deserialize<'de> for StatusLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for StatusLine
Source§impl JsonSchema for StatusLine
impl JsonSchema for StatusLine
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for StatusLine
impl PartialEq for StatusLine
Source§impl Serialize for StatusLine
impl Serialize for StatusLine
impl StructuralPartialEq for StatusLine
Auto Trait Implementations§
impl Forget for StatusLine
impl Freeze for StatusLine
impl Move for StatusLine
impl RefUnwindSafe for StatusLine
impl Send for StatusLinewhere
RawVecInner: Send,
impl Sync for StatusLinewhere
RawVecInner: Sync,
impl Unpin for StatusLine
impl UnsafeUnpin for StatusLinewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Served>: UnsafeUnpin,
impl UnwindSafe for StatusLinewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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