tof_dataclasses::alerts

Struct TofAlertManifest

Source
pub struct TofAlertManifest {
Show 133 fields pub data_mangling: TofAlertConfig, pub miss_tofevid: TofAlertConfig, pub tofev_vs_merge: TofAlertConfig, pub notof_vs_merge: TofAlertConfig, pub frac_interest: TofAlertConfig, pub mtb_lost_rate: TofAlertConfig, pub mtb_fpga_temp: TofAlertConfig, pub mtb_rate_zero: TofAlertConfig, pub mtb_hk_too_old: TofAlertConfig, pub cpu_core0_temp: TofAlertConfig, pub cpu_core1_temp: TofAlertConfig, pub cpu_hk_too_old: TofAlertConfig, pub cpu_disk: TofAlertConfig, pub rb01_temp: TofAlertConfig, pub rb02_temp: TofAlertConfig, pub rb03_temp: TofAlertConfig, pub rb04_temp: TofAlertConfig, pub rb05_temp: TofAlertConfig, pub rb06_temp: TofAlertConfig, pub rb07_temp: TofAlertConfig, pub rb08_temp: TofAlertConfig, pub rb09_temp: TofAlertConfig, pub rb11_temp: TofAlertConfig, pub rb13_temp: TofAlertConfig, pub rb14_temp: TofAlertConfig, pub rb15_temp: TofAlertConfig, pub rb16_temp: TofAlertConfig, pub rb17_temp: TofAlertConfig, pub rb18_temp: TofAlertConfig, pub rb19_temp: TofAlertConfig, pub rb20_temp: TofAlertConfig, pub rb21_temp: TofAlertConfig, pub rb22_temp: TofAlertConfig, pub rb23_temp: TofAlertConfig, pub rb24_temp: TofAlertConfig, pub rb25_temp: TofAlertConfig, pub rb26_temp: TofAlertConfig, pub rb27_temp: TofAlertConfig, pub rb28_temp: TofAlertConfig, pub rb29_temp: TofAlertConfig, pub rb30_temp: TofAlertConfig, pub rb31_temp: TofAlertConfig, pub rb32_temp: TofAlertConfig, pub rb33_temp: TofAlertConfig, pub rb34_temp: TofAlertConfig, pub rb35_temp: TofAlertConfig, pub rb36_temp: TofAlertConfig, pub rb39_temp: TofAlertConfig, pub rb40_temp: TofAlertConfig, pub rb41_temp: TofAlertConfig, pub rb42_temp: TofAlertConfig, pub rb44_temp: TofAlertConfig, pub rb46_temp: TofAlertConfig, pub rb01_rate_zero: TofAlertConfig, pub rb02_rate_zero: TofAlertConfig, pub rb03_rate_zero: TofAlertConfig, pub rb04_rate_zero: TofAlertConfig, pub rb05_rate_zero: TofAlertConfig, pub rb06_rate_zero: TofAlertConfig, pub rb07_rate_zero: TofAlertConfig, pub rb08_rate_zero: TofAlertConfig, pub rb09_rate_zero: TofAlertConfig, pub rb11_rate_zero: TofAlertConfig, pub rb13_rate_zero: TofAlertConfig, pub rb14_rate_zero: TofAlertConfig, pub rb15_rate_zero: TofAlertConfig, pub rb16_rate_zero: TofAlertConfig, pub rb17_rate_zero: TofAlertConfig, pub rb18_rate_zero: TofAlertConfig, pub rb19_rate_zero: TofAlertConfig, pub rb20_rate_zero: TofAlertConfig, pub rb21_rate_zero: TofAlertConfig, pub rb22_rate_zero: TofAlertConfig, pub rb23_rate_zero: TofAlertConfig, pub rb24_rate_zero: TofAlertConfig, pub rb25_rate_zero: TofAlertConfig, pub rb26_rate_zero: TofAlertConfig, pub rb27_rate_zero: TofAlertConfig, pub rb28_rate_zero: TofAlertConfig, pub rb29_rate_zero: TofAlertConfig, pub rb30_rate_zero: TofAlertConfig, pub rb31_rate_zero: TofAlertConfig, pub rb32_rate_zero: TofAlertConfig, pub rb33_rate_zero: TofAlertConfig, pub rb34_rate_zero: TofAlertConfig, pub rb35_rate_zero: TofAlertConfig, pub rb36_rate_zero: TofAlertConfig, pub rb39_rate_zero: TofAlertConfig, pub rb40_rate_zero: TofAlertConfig, pub rb41_rate_zero: TofAlertConfig, pub rb42_rate_zero: TofAlertConfig, pub rb44_rate_zero: TofAlertConfig, pub rb46_rate_zero: TofAlertConfig, pub rb01_hk_too_old: TofAlertConfig, pub rb02_hk_too_old: TofAlertConfig, pub rb03_hk_too_old: TofAlertConfig, pub rb04_hk_too_old: TofAlertConfig, pub rb05_hk_too_old: TofAlertConfig, pub rb06_hk_too_old: TofAlertConfig, pub rb07_hk_too_old: TofAlertConfig, pub rb08_hk_too_old: TofAlertConfig, pub rb09_hk_too_old: TofAlertConfig, pub rb11_hk_too_old: TofAlertConfig, pub rb13_hk_too_old: TofAlertConfig, pub rb14_hk_too_old: TofAlertConfig, pub rb15_hk_too_old: TofAlertConfig, pub rb16_hk_too_old: TofAlertConfig, pub rb17_hk_too_old: TofAlertConfig, pub rb18_hk_too_old: TofAlertConfig, pub rb19_hk_too_old: TofAlertConfig, pub rb20_hk_too_old: TofAlertConfig, pub rb21_hk_too_old: TofAlertConfig, pub rb22_hk_too_old: TofAlertConfig, pub rb23_hk_too_old: TofAlertConfig, pub rb24_hk_too_old: TofAlertConfig, pub rb25_hk_too_old: TofAlertConfig, pub rb26_hk_too_old: TofAlertConfig, pub rb27_hk_too_old: TofAlertConfig, pub rb28_hk_too_old: TofAlertConfig, pub rb29_hk_too_old: TofAlertConfig, pub rb30_hk_too_old: TofAlertConfig, pub rb31_hk_too_old: TofAlertConfig, pub rb32_hk_too_old: TofAlertConfig, pub rb33_hk_too_old: TofAlertConfig, pub rb34_hk_too_old: TofAlertConfig, pub rb35_hk_too_old: TofAlertConfig, pub rb36_hk_too_old: TofAlertConfig, pub rb39_hk_too_old: TofAlertConfig, pub rb40_hk_too_old: TofAlertConfig, pub rb41_hk_too_old: TofAlertConfig, pub rb42_hk_too_old: TofAlertConfig, pub rb44_hk_too_old: TofAlertConfig, pub rb46_hk_too_old: TofAlertConfig,
}
Expand description

Describes a .toml file with alert. settings

Fields§

§data_mangling: TofAlertConfig§miss_tofevid: TofAlertConfig§tofev_vs_merge: TofAlertConfig§notof_vs_merge: TofAlertConfig§frac_interest: TofAlertConfig§mtb_lost_rate: TofAlertConfig§mtb_fpga_temp: TofAlertConfig§mtb_rate_zero: TofAlertConfig§mtb_hk_too_old: TofAlertConfig§cpu_core0_temp: TofAlertConfig§cpu_core1_temp: TofAlertConfig§cpu_hk_too_old: TofAlertConfig§cpu_disk: TofAlertConfig§rb01_temp: TofAlertConfig§rb02_temp: TofAlertConfig§rb03_temp: TofAlertConfig§rb04_temp: TofAlertConfig§rb05_temp: TofAlertConfig§rb06_temp: TofAlertConfig§rb07_temp: TofAlertConfig§rb08_temp: TofAlertConfig§rb09_temp: TofAlertConfig§rb11_temp: TofAlertConfig§rb13_temp: TofAlertConfig§rb14_temp: TofAlertConfig§rb15_temp: TofAlertConfig§rb16_temp: TofAlertConfig§rb17_temp: TofAlertConfig§rb18_temp: TofAlertConfig§rb19_temp: TofAlertConfig§rb20_temp: TofAlertConfig§rb21_temp: TofAlertConfig§rb22_temp: TofAlertConfig§rb23_temp: TofAlertConfig§rb24_temp: TofAlertConfig§rb25_temp: TofAlertConfig§rb26_temp: TofAlertConfig§rb27_temp: TofAlertConfig§rb28_temp: TofAlertConfig§rb29_temp: TofAlertConfig§rb30_temp: TofAlertConfig§rb31_temp: TofAlertConfig§rb32_temp: TofAlertConfig§rb33_temp: TofAlertConfig§rb34_temp: TofAlertConfig§rb35_temp: TofAlertConfig§rb36_temp: TofAlertConfig§rb39_temp: TofAlertConfig§rb40_temp: TofAlertConfig§rb41_temp: TofAlertConfig§rb42_temp: TofAlertConfig§rb44_temp: TofAlertConfig§rb46_temp: TofAlertConfig§rb01_rate_zero: TofAlertConfig§rb02_rate_zero: TofAlertConfig§rb03_rate_zero: TofAlertConfig§rb04_rate_zero: TofAlertConfig§rb05_rate_zero: TofAlertConfig§rb06_rate_zero: TofAlertConfig§rb07_rate_zero: TofAlertConfig§rb08_rate_zero: TofAlertConfig§rb09_rate_zero: TofAlertConfig§rb11_rate_zero: TofAlertConfig§rb13_rate_zero: TofAlertConfig§rb14_rate_zero: TofAlertConfig§rb15_rate_zero: TofAlertConfig§rb16_rate_zero: TofAlertConfig§rb17_rate_zero: TofAlertConfig§rb18_rate_zero: TofAlertConfig§rb19_rate_zero: TofAlertConfig§rb20_rate_zero: TofAlertConfig§rb21_rate_zero: TofAlertConfig§rb22_rate_zero: TofAlertConfig§rb23_rate_zero: TofAlertConfig§rb24_rate_zero: TofAlertConfig§rb25_rate_zero: TofAlertConfig§rb26_rate_zero: TofAlertConfig§rb27_rate_zero: TofAlertConfig§rb28_rate_zero: TofAlertConfig§rb29_rate_zero: TofAlertConfig§rb30_rate_zero: TofAlertConfig§rb31_rate_zero: TofAlertConfig§rb32_rate_zero: TofAlertConfig§rb33_rate_zero: TofAlertConfig§rb34_rate_zero: TofAlertConfig§rb35_rate_zero: TofAlertConfig§rb36_rate_zero: TofAlertConfig§rb39_rate_zero: TofAlertConfig§rb40_rate_zero: TofAlertConfig§rb41_rate_zero: TofAlertConfig§rb42_rate_zero: TofAlertConfig§rb44_rate_zero: TofAlertConfig§rb46_rate_zero: TofAlertConfig§rb01_hk_too_old: TofAlertConfig§rb02_hk_too_old: TofAlertConfig§rb03_hk_too_old: TofAlertConfig§rb04_hk_too_old: TofAlertConfig§rb05_hk_too_old: TofAlertConfig§rb06_hk_too_old: TofAlertConfig§rb07_hk_too_old: TofAlertConfig§rb08_hk_too_old: TofAlertConfig§rb09_hk_too_old: TofAlertConfig§rb11_hk_too_old: TofAlertConfig§rb13_hk_too_old: TofAlertConfig§rb14_hk_too_old: TofAlertConfig§rb15_hk_too_old: TofAlertConfig§rb16_hk_too_old: TofAlertConfig§rb17_hk_too_old: TofAlertConfig§rb18_hk_too_old: TofAlertConfig§rb19_hk_too_old: TofAlertConfig§rb20_hk_too_old: TofAlertConfig§rb21_hk_too_old: TofAlertConfig§rb22_hk_too_old: TofAlertConfig§rb23_hk_too_old: TofAlertConfig§rb24_hk_too_old: TofAlertConfig§rb25_hk_too_old: TofAlertConfig§rb26_hk_too_old: TofAlertConfig§rb27_hk_too_old: TofAlertConfig§rb28_hk_too_old: TofAlertConfig§rb29_hk_too_old: TofAlertConfig§rb30_hk_too_old: TofAlertConfig§rb31_hk_too_old: TofAlertConfig§rb32_hk_too_old: TofAlertConfig§rb33_hk_too_old: TofAlertConfig§rb34_hk_too_old: TofAlertConfig§rb35_hk_too_old: TofAlertConfig§rb36_hk_too_old: TofAlertConfig§rb39_hk_too_old: TofAlertConfig§rb40_hk_too_old: TofAlertConfig§rb41_hk_too_old: TofAlertConfig§rb42_hk_too_old: TofAlertConfig§rb44_hk_too_old: TofAlertConfig§rb46_hk_too_old: TofAlertConfig

Implementations§

Source§

impl TofAlertManifest

Source

pub fn new() -> Self

Source

pub fn keys(&self) -> Vec<&'static str>

Source

pub fn get(&self, key: &str) -> Option<TofAlertConfig>

Source

pub fn from_toml(filename: &str) -> Result<Self, SerializationError>

Source

pub fn to_toml(&self, filename: String)

Trait Implementations§

Source§

impl Clone for TofAlertManifest

Source§

fn clone(&self) -> TofAlertManifest

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TofAlertManifest

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TofAlertManifest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for TofAlertManifest

Source§

fn eq(&self, other: &TofAlertManifest) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TofAlertManifest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TofAlertManifest

Auto Trait Implementations§

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> 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> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,