Struct sgx_tservice::sgxtime::SgxTime [−][src]
pub struct SgxTime { /* fields omitted */ }
timestamp contains time in seconds and source_nonce contains nonce associate with the time.
Methods
impl SgxTime
[src]
impl SgxTime
pub fn now() -> Result<SgxTime, SgxTimeError>
[src]
pub fn now() -> Result<SgxTime, SgxTimeError>
pub fn duration_since(
&self,
earlier: &SgxTime
) -> Result<Duration, SgxTimeError>
[src]
pub fn duration_since(
&self,
earlier: &SgxTime
) -> Result<Duration, SgxTimeError>
pub fn elapsed(&self) -> Result<Duration, SgxTimeError>
[src]
pub fn elapsed(&self) -> Result<Duration, SgxTimeError>
pub fn add_duration(&self, other: Duration) -> Option<SgxTime>
[src]
pub fn add_duration(&self, other: Duration) -> Option<SgxTime>
pub fn sub_duration(&self, other: Duration) -> Option<SgxTime>
[src]
pub fn sub_duration(&self, other: Duration) -> Option<SgxTime>
pub fn get_secs(&self) -> sgx_time_t
[src]
pub fn get_secs(&self) -> sgx_time_t
pub fn get_source_nonce(&self) -> sgx_time_source_nonce_t
[src]
pub fn get_source_nonce(&self) -> sgx_time_source_nonce_t
Trait Implementations
impl Copy for SgxTime
[src]
impl Copy for SgxTime
impl Clone for SgxTime
[src]
impl Clone for SgxTime
fn clone(&self) -> SgxTime
[src]
fn clone(&self) -> SgxTime
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)
Performs copy-assignment from source
. Read more
impl Debug for SgxTime
[src]
impl Debug for SgxTime
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 Default for SgxTime
[src]
impl Default for SgxTime
impl PartialEq for SgxTime
[src]
impl PartialEq for SgxTime
fn eq(&self, other: &SgxTime) -> bool
[src]
fn eq(&self, other: &SgxTime) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for SgxTime
[src]
impl Eq for SgxTime
impl PartialOrd for SgxTime
[src]
impl PartialOrd for SgxTime
fn partial_cmp(&self, other: &SgxTime) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SgxTime) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
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 more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more