[−][src]Struct eosio::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.
#[must_use]
fn add(self, rhs: TimePointSec) -> Self::Output
[src]
impl Add<u32> for TimePointSec
[src]
type Output = Self
The resulting type after applying the +
operator.
#[must_use]
fn add(self, rhs: u32) -> Self::Output
[src]
impl Clone for TimePointSec
[src]
fn clone(&self) -> TimePointSec
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TimePointSec
[src]
impl Debug for TimePointSec
[src]
impl Default for TimePointSec
[src]
fn default() -> TimePointSec
[src]
impl Eq for TimePointSec
[src]
impl From<BlockTimestamp> for TimePointSec
[src]
fn from(bt: BlockTimestamp) -> Self
[src]
impl From<TimePoint> for TimePointSec
[src]
impl From<TimePointSec> for BlockTimestamp
[src]
fn from(tps: TimePointSec) -> Self
[src]
impl From<TimePointSec> for u32
[src]
#[must_use]
fn from(t: TimePointSec) -> Self
[src]
impl From<u32> for TimePointSec
[src]
impl Hash for TimePointSec
[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 TimePointSec
[src]
impl Ord for TimePointSec
[src]
fn cmp(&self, other: &TimePointSec) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TimePointSec> for TimePointSec
[src]
fn eq(&self, other: &TimePointSec) -> bool
[src]
fn ne(&self, other: &TimePointSec) -> bool
[src]
impl PartialOrd<TimePointSec> for TimePointSec
[src]
fn partial_cmp(&self, other: &TimePointSec) -> Option<Ordering>
[src]
fn lt(&self, other: &TimePointSec) -> bool
[src]
fn le(&self, other: &TimePointSec) -> bool
[src]
fn gt(&self, other: &TimePointSec) -> bool
[src]
fn ge(&self, other: &TimePointSec) -> bool
[src]
impl Read for TimePointSec
[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 TimePointSec
[src]
impl StructuralPartialEq for TimePointSec
[src]
impl Write for TimePointSec
[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>,