Struct mitrid_core::utils::timestamp::timestamp::Timestamp[][src]

pub struct Timestamp(_);

Type representing a numerical timestamp. The 0 is set to the Unix Epoch Time, 01-01-1970.

Methods

impl Timestamp
[src]

Creates a new timestamp.

Creates a new timestamp from an u64.

Creates a new timestamp from a Duration starting at the Unix Epoch Time (01-01-1970).

Creates a new timestamp from milliseconds.

Creates a new timestamp from seconds.

Converts the Timestamp to a Duration.

Converts the Timestamp to a TimestampDiff.

Converts the Timestamp to u64.

Converts the Timestamp to milliseconds.

Converts the Timestamp to seconds.

Returns the current time timestamp.

Trait Implementations

impl Copy for Timestamp
[src]

impl Clone for Timestamp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Timestamp
[src]

impl PartialEq for Timestamp
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for Timestamp
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Timestamp
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Timestamp
[src]

Formats the value using the given formatter. Read more

impl Hash for Timestamp
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for Timestamp
[src]

Returns the "default value" for a type. Read more

impl Add<TimestampDiff> for Timestamp
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<TimestampDiff> for &'a Timestamp
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<&'a TimestampDiff> for Timestamp
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign<TimestampDiff> for Timestamp
[src]

Performs the += operation.

impl<'a> AddAssign<&'a TimestampDiff> for Timestamp
[src]

Performs the += operation.

impl<'a, 'b> AddAssign<&'b TimestampDiff> for &'a mut Timestamp
[src]

Performs the += operation.

impl Sub<Timestamp> for Timestamp
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<Timestamp> for &'a Timestamp
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<&'a Timestamp> for Timestamp
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<u64> for Timestamp
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<u64> for &'a Timestamp
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<&'a u64> for Timestamp
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<u64> for Timestamp
[src]

Performs the *= operation.

impl<'a> MulAssign<&'a u64> for Timestamp
[src]

Performs the *= operation.

impl<'a, 'b> MulAssign<&'b u64> for &'a mut Timestamp
[src]

Performs the *= operation.

impl Div for Timestamp
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div for &'a Timestamp
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<&'a Timestamp> for Timestamp
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Rem for Timestamp
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a> Rem for &'a Timestamp
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a> Rem<&'a Timestamp> for Timestamp
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl Sizable for Timestamp
[src]

Returns the size of the implementor.

impl Checkable for Timestamp
[src]

Checks the implementor.

Check asynchronously the implementor.

impl Datable for Timestamp
[src]

impl Serializable for Timestamp
[src]

Serializes the implementor into a json string.

Deserializes a json string into the implementor type.

Serializes the implementor into a byte vector.

Deserializes a byte vector into the implementor type.

Serializes the implementor into a hex string.

Deserializes an hex string into the implementor type.

Auto Trait Implementations

impl Send for Timestamp

impl Sync for Timestamp