Struct fuchsia_fuzzctl::Duration
source · pub struct Duration(_);
Implementations§
source§impl Duration
impl Duration
pub const INFINITE: Duration = Duration(sys::zx_duration_t::MAX)
pub const INFINITE_PAST: Duration = Duration(sys::zx_duration_t::MIN)
pub fn nanos(self) -> i64
👎Deprecated: Users should instead use into_nanos
pub fn micros(self) -> i64
👎Deprecated: Users should instead use into_micros
pub fn millis(self) -> i64
👎Deprecated: Users should instead use into_millis
pub fn seconds(self) -> i64
👎Deprecated: Users should instead use into_seconds
pub fn minutes(self) -> i64
👎Deprecated: Users should instead use into_minutes
pub fn hours(self) -> i64
👎Deprecated: Users should instead use into_hours
sourcepub const fn into_nanos(self) -> i64
pub const fn into_nanos(self) -> i64
Returns the number of nanoseconds contained by this Duration
.
sourcepub const fn into_micros(self) -> i64
pub const fn into_micros(self) -> i64
Returns the total number of whole microseconds contained by this Duration
.
sourcepub const fn into_millis(self) -> i64
pub const fn into_millis(self) -> i64
Returns the total number of whole milliseconds contained by this Duration
.
sourcepub const fn into_seconds(self) -> i64
pub const fn into_seconds(self) -> i64
Returns the total number of whole seconds contained by this Duration
.
sourcepub const fn into_minutes(self) -> i64
pub const fn into_minutes(self) -> i64
Returns the total number of whole minutes contained by this Duration
.
sourcepub const fn into_hours(self) -> i64
pub const fn into_hours(self) -> i64
Returns the total number of whole hours contained by this Duration
.
pub const fn from_nanos(nanos: i64) -> Duration
pub const fn from_micros(micros: i64) -> Duration
pub const fn from_millis(millis: i64) -> Duration
pub const fn from_seconds(secs: i64) -> Duration
pub const fn from_minutes(min: i64) -> Duration
pub const fn from_hours(hours: i64) -> Duration
Trait Implementations§
source§impl AddAssign<Duration> for Duration
impl AddAssign<Duration> for Duration
source§fn add_assign(&mut self, dur: Duration)
fn add_assign(&mut self, dur: Duration)
Performs the
+=
operation. Read moresource§impl DurationExt for Duration
impl DurationExt for Duration
source§impl Ord for Duration
impl Ord for Duration
source§impl PartialEq<Duration> for Duration
impl PartialEq<Duration> for Duration
source§impl PartialOrd<Duration> for Duration
impl PartialOrd<Duration> for Duration
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign<Duration> for Duration
impl SubAssign<Duration> for Duration
source§fn sub_assign(&mut self, dur: Duration)
fn sub_assign(&mut self, dur: Duration)
Performs the
-=
operation. Read more