Enum tor_error::AbsRetryTime
source · pub enum AbsRetryTime {
Immediate,
At(Instant),
Never,
}Expand description
An absolute RetryTime.
Unlike RetryTime, this type always denotes a particular instant in time.
You can derive it using RetryTime::absolute.
Variants§
Trait Implementations§
source§impl Clone for AbsRetryTime
impl Clone for AbsRetryTime
source§fn clone(&self) -> AbsRetryTime
fn clone(&self) -> AbsRetryTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AbsRetryTime
impl Debug for AbsRetryTime
source§impl Ord for AbsRetryTime
impl Ord for AbsRetryTime
source§fn cmp(&self, other: &AbsRetryTime) -> Ordering
fn cmp(&self, other: &AbsRetryTime) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AbsRetryTime> for AbsRetryTime
impl PartialEq<AbsRetryTime> for AbsRetryTime
source§fn eq(&self, other: &AbsRetryTime) -> bool
fn eq(&self, other: &AbsRetryTime) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<AbsRetryTime> for AbsRetryTime
impl PartialOrd<AbsRetryTime> for AbsRetryTime
source§fn partial_cmp(&self, other: &AbsRetryTime) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsRetryTime) -> Option<Ordering>
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 more