pub struct Backlog {
pub outbox: Option<Depth>,
pub questions: Option<Depth>,
pub frontdoor: Option<Depth>,
pub proposals: Option<Depth>,
pub candidates: Option<Depth>,
}Expand description
Everything waiting on the owner in mecha’s own stores.
Each field is None when that store could not be read.
Fields§
§outbox: Option<Depth>§questions: Option<Depth>§frontdoor: Option<Depth>§proposals: Option<Depth>§candidates: Option<Depth>Implementations§
Source§impl Backlog
impl Backlog
Sourcepub fn read() -> Backlog
pub fn read() -> Backlog
Read every mecha-owned store. Best-effort per store, like doctor: one unreadable store never suppresses the other four.
Sourcepub fn waiting(&self) -> Waiting
pub fn waiting(&self) -> Waiting
How much is waiting, and over how many stores that could not be read.
Sourcepub fn oldest(&self) -> Option<&str>
pub fn oldest(&self) -> Option<&str>
The oldest still-waiting stamp anywhere, RFC3339.
The signal behind “never leave a person waiting”: a queue of one item nine days old is a different failure from nine items an hour old, and a count alone cannot tell them apart.
Sourcepub fn delta(before: &Backlog, after: &Backlog) -> BacklogDelta
pub fn delta(before: &Backlog, after: &Backlog) -> BacklogDelta
What this run changed, per store.
None for a store unreadable at either end — a delta against an
unknown is not zero.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Backlog
impl<'de> Deserialize<'de> for Backlog
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Backlog
impl StructuralPartialEq for Backlog
Auto Trait Implementations§
impl Freeze for Backlog
impl RefUnwindSafe for Backlog
impl Send for Backlog
impl Sync for Backlog
impl Unpin for Backlog
impl UnsafeUnpin for Backlog
impl UnwindSafe for Backlog
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
Mutably borrows from an owned value. Read more