Skip to main content

Row

Struct Row 

Source
pub struct Row {
    pub name: String,
    pub elapsed: f64,
    pub quiet: f64,
    pub still: f64,
    pub cpu: RowCpu,
    pub wait: Option<(WaitKind, f64)>,
    pub load: Option<(u64, Load, u32)>,
    pub queued: Option<(f64, u64)>,
}
Expand description

One running check, as the region and the heartbeat see it.

Fields§

§name: String§elapsed: f64

Seconds since the check entered.

§quiet: f64

Seconds since it last wrote anything.

§still: f64

Seconds it has been silent AND idle on CPU — what the silence budget is judged against. Equal to quiet when CPU is not sampled.

§cpu: RowCpu§wait: Option<(WaitKind, f64)>

The declared lock wait it is in, and for how many seconds (ADR-0009): shown instead of the silence countdown, which does not run meanwhile.

§load: Option<(u64, Load, u32)>

The silence budget the kill decision is applying, stretched by the host’s load, with the load and the factor; None while it is the configured one (ADR-0009).

§queued: Option<(f64, u64)>

Waiting for a host slot: for how many seconds, out of how many slots.

Trait Implementations§

Source§

impl Clone for Row

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 Row

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Row

§

impl RefUnwindSafe for Row

§

impl Send for Row

§

impl Sync for Row

§

impl Unpin for Row

§

impl UnsafeUnpin for Row

§

impl UnwindSafe for Row

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<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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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.