[][src]Struct eosio::BlockTimestamp

pub struct BlockTimestamp { /* fields omitted */ }

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]

impl Copy for BlockTimestamp[src]

impl Debug for BlockTimestamp[src]

impl Default for BlockTimestamp[src]

impl Eq for BlockTimestamp[src]

impl From<BlockTimestamp> for u32[src]

impl From<BlockTimestamp> for TimePoint[src]

impl From<BlockTimestamp> for TimePointSec[src]

impl From<TimePoint> for BlockTimestamp[src]

impl From<TimePointSec> for BlockTimestamp[src]

impl From<u32> for BlockTimestamp[src]

impl Hash for BlockTimestamp[src]

impl NumBytes for BlockTimestamp[src]

impl Ord for BlockTimestamp[src]

impl PartialEq<BlockTimestamp> for BlockTimestamp[src]

impl PartialOrd<BlockTimestamp> for BlockTimestamp[src]

impl Read for BlockTimestamp[src]

impl StructuralEq for BlockTimestamp[src]

impl StructuralPartialEq for BlockTimestamp[src]

impl Write for BlockTimestamp[src]

Auto Trait Implementations

impl Send for BlockTimestamp

impl Sync for BlockTimestamp

impl Unpin for BlockTimestamp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.