pub struct HoldsEpoch(/* private fields */);Expand description
Holds epoch type.
Implementations§
Source§impl HoldsEpoch
impl HoldsEpoch
Sourcepub const NOT_APPLICABLE: HoldsEpoch
pub const NOT_APPLICABLE: HoldsEpoch
No epoch is applicable.
Sourcepub fn from_block_time(block_time: BlockTime, hold_internal: TimeDiff) -> Self
pub fn from_block_time(block_time: BlockTime, hold_internal: TimeDiff) -> Self
Instance from block time.
Sourcepub fn from_timestamp(timestamp: Timestamp, hold_internal: TimeDiff) -> Self
pub fn from_timestamp(timestamp: Timestamp, hold_internal: TimeDiff) -> Self
Instance from timestamp.
Sourcepub fn from_millis(timestamp_millis: u64, hold_internal_millis: u64) -> Self
pub fn from_millis(timestamp_millis: u64, hold_internal_millis: u64) -> Self
Instance from milliseconds.
Trait Implementations§
Source§impl Clone for HoldsEpoch
impl Clone for HoldsEpoch
Source§fn clone(&self) -> HoldsEpoch
fn clone(&self) -> HoldsEpoch
Returns a duplicate 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 HoldsEpoch
impl Debug for HoldsEpoch
Source§impl Default for HoldsEpoch
impl Default for HoldsEpoch
Source§fn default() -> HoldsEpoch
fn default() -> HoldsEpoch
Returns the “default value” for a type. Read more
Source§impl PartialEq for HoldsEpoch
impl PartialEq for HoldsEpoch
impl Copy for HoldsEpoch
impl Eq for HoldsEpoch
impl StructuralPartialEq for HoldsEpoch
Auto Trait Implementations§
impl Freeze for HoldsEpoch
impl RefUnwindSafe for HoldsEpoch
impl Send for HoldsEpoch
impl Sync for HoldsEpoch
impl Unpin for HoldsEpoch
impl UnwindSafe for HoldsEpoch
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more