[][src]Struct eosio::TimePointSec

pub struct TimePointSec(_);

A lower resolution TimePoint accurate only to seconds from 1970 https://github.com/EOSIO/eosio.cdt/blob/4985359a30da1f883418b7133593f835927b8046/libraries/eosiolib/core/eosio/time.hpp#L79-L132

Methods

impl TimePointSec[src]

#[must_use] pub const fn from_secs(secs: u32) -> Self[src]

Create a new TimePointSec

#[must_use] pub const fn as_secs(self) -> u32[src]

Gets the seconds

Trait Implementations

impl Add<TimePointSec> for u32[src]

type Output = TimePointSec

The resulting type after applying the + operator.

impl Add<u32> for TimePointSec[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for TimePointSec[src]

impl Copy for TimePointSec[src]

impl Debug for TimePointSec[src]

impl Default for TimePointSec[src]

impl Eq for TimePointSec[src]

impl From<BlockTimestamp> for TimePointSec[src]

impl From<TimePoint> for TimePointSec[src]

impl From<TimePointSec> for BlockTimestamp[src]

impl From<TimePointSec> for u32[src]

impl From<u32> for TimePointSec[src]

impl Hash for TimePointSec[src]

impl NumBytes for TimePointSec[src]

impl Ord for TimePointSec[src]

impl PartialEq<TimePointSec> for TimePointSec[src]

impl PartialOrd<TimePointSec> for TimePointSec[src]

impl Read for TimePointSec[src]

impl StructuralEq for TimePointSec[src]

impl StructuralPartialEq for TimePointSec[src]

impl Write for TimePointSec[src]

Auto Trait Implementations

impl Send for TimePointSec

impl Sync for TimePointSec

impl Unpin for TimePointSec

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.