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
sec: i64
nsec: i32
Methods
impl Timespec[src]
Trait Implementations
impl Ord for Timespec[src]
impl Hash for Timespec[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Copy for Timespec[src]
impl Clone for Timespec[src]
fn clone(&self) -> Timespec[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Timespec[src]
impl Add<Duration> for Timespec[src]
impl PartialEq<Timespec> for Timespec[src]
fn eq(&self, __arg_0: &Timespec) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Timespec) -> bool[src]
This method tests for !=.
impl Debug for Timespec[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.
impl Sub<Timespec> for Timespec[src]
impl Sub<Duration> for Timespec[src]
impl PartialOrd<Timespec> for Timespec[src]
fn partial_cmp(&self, __arg_0: &Timespec) -> Option<Ordering>[src]
fn lt(&self, __arg_0: &Timespec) -> bool[src]
fn le(&self, __arg_0: &Timespec) -> bool[src]
fn gt(&self, __arg_0: &Timespec) -> bool[src]
fn ge(&self, __arg_0: &Timespec) -> bool[src]
impl FromValue for Timespec[src]
type Intermediate = ParseIr<Timespec>
fn from_value(v: Value) -> Timespec[src]
Will panic if could not convert v to Self.
fn from_value_opt(v: Value) -> Result<Self, FromValueError>[src]
Will return Err(Error::FromValueError(v)) if could not convert v to Self.
fn get_intermediate(v: Value) -> Result<Self::Intermediate, FromValueError>[src]
Will return Err(Error::FromValueError(v)) if v is not convertible to Self.