Struct chain_time::timeframe::SlotDuration
source · pub struct SlotDuration(u64);
Expand description
Duration of a slot
For now we only supports duration down to the seconds
Tuple Fields§
§0: u64
Implementations§
source§impl SlotDuration
impl SlotDuration
sourcepub fn to_duration(self) -> Duration
pub fn to_duration(self) -> Duration
Convert this SlotDuration
to a core::time::Duration
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 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 ==
.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