Struct mitrid_core::utils::timestamp::timestamp_diff::TimestampDiff[][src]

pub struct TimestampDiff(_);

Type representing the difference between two Timestamps.

Methods

impl TimestampDiff
[src]

Creates a new TimestampDiff.

Creates a new TimestampDiff from i64.

Creates a new TimestampDiff from u64.

Creates a new TimestampDiff from a Duration.

Creates a new TimestampDiff from milliseconds.

Creates a new TimestampDiff from seconds.

Converts the TimestampDiff to i64.

Converts the TimestampDiff to its absolute representation.

Converts the TimestampDiff to u64.

Converts the TimestampDiff to a Duration.

Converts the TimestampDiff to milliseconds.

Converts the TimestampDiff to seconds.

Returns the sign of the TimestampDiff.

Trait Implementations

impl Copy for TimestampDiff
[src]

impl Clone for TimestampDiff
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for TimestampDiff
[src]

impl PartialEq for TimestampDiff
[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 TimestampDiff
[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 TimestampDiff
[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 TimestampDiff
[src]

Formats the value using the given formatter. Read more

impl Default for TimestampDiff
[src]

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

impl Hash for TimestampDiff
[src]

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

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

impl Add for TimestampDiff
[src]

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign for TimestampDiff
[src]

Performs the += operation.

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

Performs the += operation.

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

Performs the += operation.

impl Sub for TimestampDiff
[src]

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign for TimestampDiff
[src]

Performs the -= operation.

impl<'a> SubAssign<&'a TimestampDiff> for TimestampDiff
[src]

Performs the -= operation.

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

Performs the -= operation.

impl Mul for TimestampDiff
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul for &'a TimestampDiff
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<&'a TimestampDiff> for TimestampDiff
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign for TimestampDiff
[src]

Performs the *= operation.

impl<'a> MulAssign<&'a TimestampDiff> for TimestampDiff
[src]

Performs the *= operation.

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

Performs the *= operation.

impl Div for TimestampDiff
[src]

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

impl DivAssign for TimestampDiff
[src]

Performs the /= operation.

impl<'a> DivAssign<&'a TimestampDiff> for TimestampDiff
[src]

Performs the /= operation.

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

Performs the /= operation.

impl Rem for TimestampDiff
[src]

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

impl RemAssign for TimestampDiff
[src]

Performs the %= operation.

impl<'a> RemAssign<&'a TimestampDiff> for TimestampDiff
[src]

Performs the %= operation.

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

Performs the %= operation.

impl Sizable for TimestampDiff
[src]

Returns the size of the implementor.

impl Checkable for TimestampDiff
[src]

Checks the implementor.

Check asynchronously the implementor.

impl Datable for TimestampDiff
[src]

impl Serializable for TimestampDiff
[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.

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.

Auto Trait Implementations