[−][src]Struct eosio::BlockTimestamp
This class is used in the block headers to represent the block time It is a parameterised class that takes an Epoch in milliseconds and and an interval in milliseconds and computes the number of slots.
Methods
impl BlockTimestamp[src]
pub const EPOCH: i64[src]
Epoch is 2000-01-01T00:00.000Z.
pub const INTERVAL_MS: i32[src]
Milliseconds between blocks.
Trait Implementations
impl Clone for BlockTimestamp[src]
fn clone(&self) -> BlockTimestamp[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for BlockTimestamp[src]
impl Debug for BlockTimestamp[src]
impl Default for BlockTimestamp[src]
fn default() -> BlockTimestamp[src]
impl Eq for BlockTimestamp[src]
impl From<BlockTimestamp> for u32[src]
#[must_use]
fn from(t: BlockTimestamp) -> Self[src]
impl From<BlockTimestamp> for TimePoint[src]
fn from(bt: BlockTimestamp) -> Self[src]
impl From<BlockTimestamp> for TimePointSec[src]
fn from(bt: BlockTimestamp) -> Self[src]
impl From<TimePoint> for BlockTimestamp[src]
impl From<TimePointSec> for BlockTimestamp[src]
fn from(tps: TimePointSec) -> Self[src]
impl From<u32> for BlockTimestamp[src]
impl Hash for BlockTimestamp[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl NumBytes for BlockTimestamp[src]
impl Ord for BlockTimestamp[src]
fn cmp(&self, other: &BlockTimestamp) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<BlockTimestamp> for BlockTimestamp[src]
fn eq(&self, other: &BlockTimestamp) -> bool[src]
fn ne(&self, other: &BlockTimestamp) -> bool[src]
impl PartialOrd<BlockTimestamp> for BlockTimestamp[src]
fn partial_cmp(&self, other: &BlockTimestamp) -> Option<Ordering>[src]
fn lt(&self, other: &BlockTimestamp) -> bool[src]
fn le(&self, other: &BlockTimestamp) -> bool[src]
fn gt(&self, other: &BlockTimestamp) -> bool[src]
fn ge(&self, other: &BlockTimestamp) -> bool[src]
impl Read for BlockTimestamp[src]
fn read(bytes: &[u8], pos: &mut usize) -> Result<Self, ReadError>[src]
fn unpack<T: AsRef<[u8]>>(bytes: T) -> Result<Self, ReadError>[src]
impl StructuralEq for BlockTimestamp[src]
impl StructuralPartialEq for BlockTimestamp[src]
impl Write for BlockTimestamp[src]
fn write(&self, bytes: &mut [u8], pos: &mut usize) -> Result<(), WriteError>[src]
fn pack(&self) -> Result<Vec<u8>, WriteError>[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,