Struct tor_error::LooseCmpRetryTime
source · pub struct LooseCmpRetryTime(RetryTime);
Expand description
A RetryTime
wrapped so that it compares according to RetryTime::loose_cmp
Tuple Fields§
§0: RetryTime
Trait Implementations§
source§impl Clone for LooseCmpRetryTime
impl Clone for LooseCmpRetryTime
source§fn clone(&self) -> LooseCmpRetryTime
fn clone(&self) -> LooseCmpRetryTime
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 LooseCmpRetryTime
impl Debug for LooseCmpRetryTime
source§impl From<LooseCmpRetryTime> for RetryTime
impl From<LooseCmpRetryTime> for RetryTime
source§fn from(original: LooseCmpRetryTime) -> Self
fn from(original: LooseCmpRetryTime) -> Self
Converts to this type from the input type.
source§impl From<RetryTime> for LooseCmpRetryTime
impl From<RetryTime> for LooseCmpRetryTime
source§fn from(original: RetryTime) -> LooseCmpRetryTime
fn from(original: RetryTime) -> LooseCmpRetryTime
Converts to this type from the input type.
source§impl Ord for LooseCmpRetryTime
impl Ord for LooseCmpRetryTime
source§impl PartialEq for LooseCmpRetryTime
impl PartialEq for LooseCmpRetryTime
source§fn eq(&self, other: &LooseCmpRetryTime) -> bool
fn eq(&self, other: &LooseCmpRetryTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LooseCmpRetryTime
impl PartialOrd for LooseCmpRetryTime
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 moreimpl Copy for LooseCmpRetryTime
impl Eq for LooseCmpRetryTime
impl StructuralPartialEq for LooseCmpRetryTime
Auto Trait Implementations§
impl Freeze for LooseCmpRetryTime
impl RefUnwindSafe for LooseCmpRetryTime
impl Send for LooseCmpRetryTime
impl Sync for LooseCmpRetryTime
impl Unpin for LooseCmpRetryTime
impl UnwindSafe for LooseCmpRetryTime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more