pub struct PathEntry { /* private fields */ }Expand description
A description of a single hop in a Path.
Each hop can be to a relay or bridge on the Tor network, or a “virtual” hop representing the cryptographic connection between a client and an onion service.
Implementations§
source§impl PathEntry
impl PathEntry
sourcepub fn as_chan_target(&self) -> Option<&impl ChanTarget>
pub fn as_chan_target(&self) -> Option<&impl ChanTarget>
If this hop was built to a known Tor relay or bridge instance, return a reference to a ChanTarget representing that instance.
Otherwise, return None.
Trait Implementations§
source§impl Redactable for PathEntry
impl Redactable for PathEntry
source§fn display_redacted(&self, f: &mut Formatter<'_>) -> Result
fn display_redacted(&self, f: &mut Formatter<'_>) -> Result
As
Display::fmt, but produce a redacted representation.source§fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result<(), Error>
As
Debug::fmt, but produce a redacted representation.source§fn redacted(&self) -> Redacted<&Self>
fn redacted(&self) -> Redacted<&Self>
Return a smart pointer that will display or debug this object as its
redacted form.
source§fn maybe_redacted(&self, redact: bool) -> MaybeRedacted<&Self>
fn maybe_redacted(&self, redact: bool) -> MaybeRedacted<&Self>
Return a smart pointer that redacts this object if
redact is true.Auto Trait Implementations§
impl RefUnwindSafe for PathEntry
impl Send for PathEntry
impl Sync for PathEntry
impl Unpin for PathEntry
impl UnwindSafe for PathEntry
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