#[repr(u8)]pub enum LTBThreshold {
NoHit = 0,
Hit = 1,
Beta = 2,
Veto = 3,
Unknown = 255,
}
Expand description
LTB Thresholds as passed on by the MTB See also
Variants§
NoHit = 0
Hit = 1
First threshold, 40mV, about 0.75 minI
Beta = 2
Second threshold, 32mV (? error in doc ?, about 2.5 minI
Veto = 3
Third threshold, 375mV about 30 minI
Unknown = 255
Use u8::MAX for Unknown, since 0 is pre-determined for “NoHit,
Trait Implementations§
Source§impl Clone for LTBThreshold
impl Clone for LTBThreshold
Source§fn clone(&self) -> LTBThreshold
fn clone(&self) -> LTBThreshold
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LTBThreshold
impl Debug for LTBThreshold
Source§impl<'de> Deserialize<'de> for LTBThreshold
impl<'de> Deserialize<'de> for LTBThreshold
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
Source§impl Display for LTBThreshold
impl Display for LTBThreshold
Source§impl From<u8> for LTBThreshold
impl From<u8> for LTBThreshold
Source§impl FromRandom for LTBThreshold
impl FromRandom for LTBThreshold
fn from_random() -> Self
Source§impl PartialEq for LTBThreshold
impl PartialEq for LTBThreshold
Source§impl Serialize for LTBThreshold
impl Serialize for LTBThreshold
impl Copy for LTBThreshold
impl StructuralPartialEq for LTBThreshold
Auto Trait Implementations§
impl Freeze for LTBThreshold
impl RefUnwindSafe for LTBThreshold
impl Send for LTBThreshold
impl Sync for LTBThreshold
impl Unpin for LTBThreshold
impl UnwindSafe for LTBThreshold
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more