std::time::Duration
pub struct Duration
- Kind
- struct
- Module
std::time- Since
- 1.3.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::time in the Rust reference. This page has 73 cards.
pub struct Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn abs_diff(self, other: Duration) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_micros(&self) -> u128
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_millis(&self) -> u128
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_millis_f32(&self) -> f32
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_millis_f64(&self) -> f64
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_nanos(&self) -> u128
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_secs(&self) -> u64
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_secs_f32(&self) -> f32
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_secs_f64(&self) -> f64
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_add(self, rhs: Duration) -> Option<Duration>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_div(self, rhs: u32) -> Option<Duration>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_mul(self, rhs: u32) -> Option<Duration>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_sub(self, rhs: Duration) -> Option<Duration>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_duration_ceil(self, rhs: Duration) -> u128
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_duration_f32(self, rhs: Duration) -> f32
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_duration_f64(self, rhs: Duration) -> f64
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_duration_floor(self, rhs: Duration) -> u128
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn div_f32(self, rhs: f32) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn div_f64(self, rhs: f64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_days(days: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_hours(hours: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_micros(micros: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_millis(millis: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_mins(mins: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_nanos(nanos: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_nanos_u128(nanos: u128) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_secs(secs: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn from_secs_f32(secs: f32) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn from_secs_f64(secs: f64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_weeks(weeks: u64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_zero(&self) -> bool
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MAX: Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MICROSECOND: Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MILLISECOND: Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn mul_f32(self, rhs: f32) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn mul_f64(self, rhs: f64) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const NANOSECOND: Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(secs: u64, nanos: u32) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_add(self, rhs: Duration) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_mul(self, rhs: u32) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_sub(self, rhs: Duration) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const SECOND: Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn subsec_micros(&self) -> u32
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn subsec_millis(&self) -> u32
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn subsec_nanos(&self) -> u32
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_from_secs_f32(secs: f32) -> Result<Duration, TryFromFloatSecsError>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_from_secs_f64(secs: f64) -> Result<Duration, TryFromFloatSecsError>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const ZERO: Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Instant(/* private fields */)
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn checked_add(&self, duration: Duration) -> Option<Instant>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn checked_duration_since(&self, earlier: Instant) -> Option<Duration>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn checked_sub(&self, duration: Duration) -> Option<Instant>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn duration_since(&self, earlier: Instant) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn elapsed(&self) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn now() -> Instant
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn saturating_duration_since(&self, earlier: Instant) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct SystemTime(/* private fields */)
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn checked_add(&self, duration: Duration) -> Option<SystemTime>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn checked_sub(&self, duration: Duration) -> Option<SystemTime>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn duration_since( &self, earlier: SystemTime, ) -> Result<Duration, SystemTimeError>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn elapsed(&self) -> Result<Duration, SystemTimeError>
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MAX: SystemTime
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MIN: SystemTime
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn now() -> SystemTime
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn saturating_add(&self, duration: Duration) -> SystemTime
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn saturating_duration_since(&self, earlier: SystemTime) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn saturating_sub(&self, duration: Duration) -> SystemTime
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const UNIX_EPOCH: SystemTime = UNIX_EPOCH
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct SystemTimeError(/* private fields */)
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn duration(&self) -> Duration
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct TryFromFloatSecsError
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const UNIX_EPOCH: SystemTime;
std::timeSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.