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 SystemTimeError
pub fn duration(&self) -> Duration
[src]
pub fn duration(&self) -> Duration
Returns 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 SystemTimeError
fn clone(&self) -> SystemTimeError
[src]
fn clone(&self) -> SystemTimeError
Returns 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 SystemTimeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for SystemTimeError
[src]
impl Error for SystemTimeError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
A 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 SystemTimeError
Auto Trait Implementations
impl Send for SystemTimeError
impl Send for SystemTimeError
impl Sync for SystemTimeError
impl Sync for SystemTimeError