Struct sgx_tstd::time::SystemTimeError [−][src]
pub struct SystemTimeError(_);
An error returned from the duration_since and elapsed methods on
SystemTime, used to learn how far in the opposite direction a system time
lies.
Methods
impl SystemTimeError[src]
impl SystemTimeErrorpub fn duration(&self) -> Duration[src]
pub fn duration(&self) -> DurationReturns the positive duration which represents how far forward the second system time was from the first.
A SystemTimeError is returned from the [duration_since] and [elapsed]
methods of SystemTime whenever the second system time represents a point later
in time than the self of the method call.
Trait Implementations
impl Clone for SystemTimeError[src]
impl Clone for SystemTimeErrorfn clone(&self) -> SystemTimeError[src]
fn clone(&self) -> SystemTimeErrorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for SystemTimeError[src]
impl Debug for SystemTimeErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for SystemTimeError[src]
impl Error for SystemTimeErrorfn description(&self) -> &str[src]
fn description(&self) -> &strA short description of the error.
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any.
fn type_id(&self) -> TypeId where
Self: 'static, [src]
fn type_id(&self) -> TypeId where
Self: 'static, Get the TypeId of self
impl Display for SystemTimeError[src]
impl Display for SystemTimeErrorAuto Trait Implementations
impl Send for SystemTimeError
impl Send for SystemTimeErrorimpl Sync for SystemTimeError
impl Sync for SystemTimeError