[−][src]Struct eosio::TimePoint
High resolution time point in microseconds https://github.com/EOSIO/eosio.cdt/blob/4985359a30da1f883418b7133593f835927b8046/libraries/eosiolib/core/eosio/time.hpp#L49-L77
Methods
impl TimePoint
[src]
#[must_use]
pub const fn from_micros(micros: i64) -> Self
[src]
#[must_use]
pub const fn from_millis(millis: i64) -> Self
[src]
#[must_use]
pub const fn as_micros(&self) -> i64
[src]
Gets the microseconds
#[must_use]
pub const fn as_millis(&self) -> i64
[src]
Gets the milliseconds
#[must_use]
pub const fn as_secs(&self) -> i32
[src]
#[must_use]
pub const fn as_time_point_sec(&self) -> TimePointSec
[src]
Trait Implementations
impl Clone for TimePoint
[src]
fn clone(&self) -> TimePoint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TimePoint
[src]
impl Debug for TimePoint
[src]
impl Default for TimePoint
[src]
impl Eq for TimePoint
[src]
impl From<BlockTimestamp> for TimePoint
[src]
fn from(bt: BlockTimestamp) -> Self
[src]
impl From<TimePoint> for BlockTimestamp
[src]
impl From<TimePoint> for i64
[src]
impl From<TimePoint> for TimePointSec
[src]
impl From<i64> for TimePoint
[src]
impl Hash for TimePoint
[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 TimePoint
[src]
impl Ord for TimePoint
[src]
fn cmp(&self, other: &TimePoint) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TimePoint> for TimePoint
[src]
impl PartialOrd<TimePoint> for TimePoint
[src]
fn partial_cmp(&self, other: &TimePoint) -> Option<Ordering>
[src]
fn lt(&self, other: &TimePoint) -> bool
[src]
fn le(&self, other: &TimePoint) -> bool
[src]
fn gt(&self, other: &TimePoint) -> bool
[src]
fn ge(&self, other: &TimePoint) -> bool
[src]
impl Read for TimePoint
[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 TimePoint
[src]
impl StructuralPartialEq for TimePoint
[src]
impl TryFrom<TimePoint> for u64
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(t: TimePoint) -> Result<Self, Self::Error>
[src]
impl TryFrom<u64> for TimePoint
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(i: u64) -> Result<Self, Self::Error>
[src]
impl Write for TimePoint
[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>,