Struct fuchsia_zircon::Time
[−]
[src]
pub struct Time(_);
Methods
impl Time
[src]
const INFINITE: Time
INFINITE: Time = Time(sys::ZX_TIME_INFINITE)
fn get(clock_id: ClockId) -> Time
[src]
Get the current time, from the specific clock id.
Wraps the zx_time_get syscall.
fn after(duration: Duration) -> Time
[src]
Compute a deadline for the time in the future that is the given Duration
away.
Wraps the zx_deadline_after syscall.
fn sleep(self)
[src]
Sleep until the given time.
Wraps the zx_nanosleep syscall.
fn nanos(self) -> u64
[src]
fn from_nanos(nanos: u64) -> Self
[src]
Trait Implementations
impl Debug for Time
[src]
impl Copy for Time
[src]
impl Clone for Time
[src]
fn clone(&self) -> Time
[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 Time
[src]
impl PartialEq for Time
[src]
fn eq(&self, __arg_0: &Time) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
[src]
This method tests for !=
.
impl Ord for Time
[src]
fn cmp(&self, __arg_0: &Time) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for Time
[src]
fn partial_cmp(&self, __arg_0: &Time) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Time) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Time) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Time) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Time) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for Time
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
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 Add<Duration> for Time
[src]
type Output = Time
The resulting type after applying the +
operator.
fn add(self, dur: Duration) -> Time
[src]
Performs the +
operation.
impl Sub<Duration> for Time
[src]
type Output = Time
The resulting type after applying the -
operator.
fn sub(self, dur: Duration) -> Time
[src]
Performs the -
operation.
impl AddAssign<Duration> for Time
[src]
fn add_assign(&mut self, dur: Duration)
[src]
Performs the +=
operation.
impl SubAssign<Duration> for Time
[src]
fn sub_assign(&mut self, dur: Duration)
[src]
Performs the -=
operation.