Struct jormungandr_lib::interfaces::ActiveSlotCoefficient
source · pub struct ActiveSlotCoefficient(Milli);
Tuple Fields§
§0: Milli
Implementations§
source§impl ActiveSlotCoefficient
impl ActiveSlotCoefficient
sourcepub const MINIMUM: Self = _
pub const MINIMUM: Self = _
minimal value for the active slot coefficient
assert_eq!(ActiveSlotCoefficient::MINIMUM, ActiveSlotCoefficient::new(Milli::from_millis(0_001)).unwrap())
sourcepub const MAXIMUM: Self = _
pub const MAXIMUM: Self = _
maximal value for the active slot coefficient
assert_eq!(ActiveSlotCoefficient::MAXIMUM, ActiveSlotCoefficient::new(Milli::from_millis(1_000)).unwrap())
pub fn new(milli: Milli) -> Option<Self>
Trait Implementations§
source§impl Clone for ActiveSlotCoefficient
impl Clone for ActiveSlotCoefficient
source§fn clone(&self) -> ActiveSlotCoefficient
fn clone(&self) -> ActiveSlotCoefficient
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 ActiveSlotCoefficient
impl Debug for ActiveSlotCoefficient
source§impl Default for ActiveSlotCoefficient
impl Default for ActiveSlotCoefficient
source§impl<'de> Deserialize<'de> for ActiveSlotCoefficient
impl<'de> Deserialize<'de> for ActiveSlotCoefficient
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 ActiveSlotCoefficient
impl Display for ActiveSlotCoefficient
source§impl From<ActiveSlotCoefficient> for ConfigParam
impl From<ActiveSlotCoefficient> for ConfigParam
source§fn from(active_slot_coefficient: ActiveSlotCoefficient) -> Self
fn from(active_slot_coefficient: ActiveSlotCoefficient) -> Self
Converts to this type from the input type.
source§impl Ord for ActiveSlotCoefficient
impl Ord for ActiveSlotCoefficient
source§fn cmp(&self, other: &ActiveSlotCoefficient) -> Ordering
fn cmp(&self, other: &ActiveSlotCoefficient) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ActiveSlotCoefficient> for ActiveSlotCoefficient
impl PartialEq<ActiveSlotCoefficient> for ActiveSlotCoefficient
source§fn eq(&self, other: &ActiveSlotCoefficient) -> bool
fn eq(&self, other: &ActiveSlotCoefficient) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ActiveSlotCoefficient> for ActiveSlotCoefficient
impl PartialOrd<ActiveSlotCoefficient> for ActiveSlotCoefficient
source§fn partial_cmp(&self, other: &ActiveSlotCoefficient) -> Option<Ordering>
fn partial_cmp(&self, other: &ActiveSlotCoefficient) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ActiveSlotCoefficient
impl Serialize for ActiveSlotCoefficient
source§impl TryFrom<ConfigParam> for ActiveSlotCoefficient
impl TryFrom<ConfigParam> for ActiveSlotCoefficient
impl Copy for ActiveSlotCoefficient
impl Eq for ActiveSlotCoefficient
impl StructuralEq for ActiveSlotCoefficient
impl StructuralPartialEq for ActiveSlotCoefficient
Auto Trait Implementations§
impl RefUnwindSafe for ActiveSlotCoefficient
impl Send for ActiveSlotCoefficient
impl Sync for ActiveSlotCoefficient
impl Unpin for ActiveSlotCoefficient
impl UnwindSafe for ActiveSlotCoefficient
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