Struct mysql_async::time::Timespec [] [src]

pub struct Timespec {
    pub sec: i64,
    pub nsec: i32,
}

A record specifying a time value in seconds and nanoseconds, where nanoseconds represent the offset from the given second.

For example a timespec of 1.2 seconds after the beginning of the epoch would be represented as {sec: 1, nsec: 200000000}.

Fields

Methods

impl Timespec
[src]

[src]

Trait Implementations

impl Ord for Timespec
[src]

[src]

impl Hash for Timespec
[src]

[src]

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

1.3.0
[src]

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

impl Copy for Timespec
[src]

impl Clone for Timespec
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Timespec
[src]

impl Add<Duration> for Timespec
[src]

[src]

impl PartialEq<Timespec> for Timespec
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Timespec
[src]

[src]

Formats the value using the given formatter.

impl Sub<Timespec> for Timespec
[src]

[src]

impl Sub<Duration> for Timespec
[src]

[src]

impl PartialOrd<Timespec> for Timespec
[src]

[src]

[src]

[src]

[src]

[src]

impl FromValue for Timespec
[src]

[src]

Will panic if could not convert v to Self.

[src]

Will return Err(Error::FromValueError(v)) if could not convert v to Self.

[src]

Will return Err(Error::FromValueError(v)) if v is not convertible to Self.