Struct tor_netdir::details::UncheckedRelayDetails
source · pub struct UncheckedRelayDetails<'a>(/* private fields */);
Expand description
A view for lower-level details about a UncheckedRelay
.
Most callers should avoid using this structure;
they should instead call higher-level functions
like those in the tor-relay-selection
crate.
Implementations§
source§impl<'a> UncheckedRelayDetails<'a>
impl<'a> UncheckedRelayDetails<'a>
sourcepub fn is_suitable_as_guard(&self) -> bool
pub fn is_suitable_as_guard(&self) -> bool
Return true if this relay is suitable for use as a newly sampled guard, or for continuing to use as a guard.
sourcepub fn is_dir_cache(&self) -> bool
pub fn is_dir_cache(&self) -> bool
Return true if this relay is a potential directory cache.
Trait Implementations§
source§impl<'a> Clone for UncheckedRelayDetails<'a>
impl<'a> Clone for UncheckedRelayDetails<'a>
source§fn clone(&self) -> UncheckedRelayDetails<'a>
fn clone(&self) -> UncheckedRelayDetails<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for UncheckedRelayDetails<'a>
impl<'a> RefUnwindSafe for UncheckedRelayDetails<'a>
impl<'a> Send for UncheckedRelayDetails<'a>
impl<'a> Sync for UncheckedRelayDetails<'a>
impl<'a> Unpin for UncheckedRelayDetails<'a>
impl<'a> UnwindSafe for UncheckedRelayDetails<'a>
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