pub struct SlotDuration(u8);
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
source§impl Clone for SlotDuration
impl Clone for SlotDuration
source§fn clone(&self) -> SlotDuration
fn clone(&self) -> SlotDuration
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 SlotDuration
impl Debug for SlotDuration
source§impl Default for SlotDuration
impl Default for SlotDuration
source§impl<'de> Deserialize<'de> for SlotDuration
impl<'de> Deserialize<'de> for SlotDuration
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 SlotDuration
impl Display for SlotDuration
source§impl From<SlotDuration> for ConfigParam
impl From<SlotDuration> for ConfigParam
source§fn from(slots_duration: SlotDuration) -> Self
fn from(slots_duration: SlotDuration) -> Self
Converts to this type from the input type.
source§impl From<SlotDuration> for u8
impl From<SlotDuration> for u8
source§fn from(slots_duration: SlotDuration) -> u8
fn from(slots_duration: SlotDuration) -> u8
Converts to this type from the input type.
source§impl Hash for SlotDuration
impl Hash for SlotDuration
source§impl Ord for SlotDuration
impl Ord for SlotDuration
source§fn cmp(&self, other: &SlotDuration) -> Ordering
fn cmp(&self, other: &SlotDuration) -> 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<SlotDuration> for SlotDuration
impl PartialEq<SlotDuration> for SlotDuration
source§fn eq(&self, other: &SlotDuration) -> bool
fn eq(&self, other: &SlotDuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SlotDuration> for SlotDuration
impl PartialOrd<SlotDuration> for SlotDuration
source§fn partial_cmp(&self, other: &SlotDuration) -> Option<Ordering>
fn partial_cmp(&self, other: &SlotDuration) -> 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 SlotDuration
impl Serialize for SlotDuration
source§impl TryFrom<ConfigParam> for SlotDuration
impl TryFrom<ConfigParam> for SlotDuration
source§impl TryFrom<u8> for SlotDuration
impl TryFrom<u8> for SlotDuration
impl Copy for SlotDuration
impl Eq for SlotDuration
impl StructuralEq for SlotDuration
impl StructuralPartialEq for SlotDuration
Auto Trait Implementations§
impl RefUnwindSafe for SlotDuration
impl Send for SlotDuration
impl Sync for SlotDuration
impl Unpin for SlotDuration
impl UnwindSafe for SlotDuration
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