Enum tor_persist::state_dir::Liveness
source · pub enum Liveness {
PossiblyUnused,
Live,
}
Available on crate feature
state-dir
only.Expand description
Is an instance still relevant?
Returned by InstancePurgeHandler::name_filter
.
See StateDirectory::purge_instances
for details of the semantics.
Variants§
PossiblyUnused
This instance is not known to be interesting
It could be perhaps expired, if it’s been long enough
Live
This instance is still wanted
Trait Implementations§
source§impl Ord for Liveness
impl Ord for Liveness
source§impl PartialEq for Liveness
impl PartialEq for Liveness
source§impl PartialOrd for Liveness
impl PartialOrd for Liveness
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 Liveness
impl Eq for Liveness
impl StructuralPartialEq for Liveness
Auto Trait Implementations§
impl Freeze for Liveness
impl RefUnwindSafe for Liveness
impl Send for Liveness
impl Sync for Liveness
impl Unpin for Liveness
impl UnwindSafe for Liveness
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more