Struct tor_linkspec::OwnedCircTarget
source · pub struct OwnedCircTarget { /* private fields */ }Expand description
OwnedCircTarget is a summary of a CircTarget that owns all its
members.
Implementations§
source§impl OwnedCircTarget
impl OwnedCircTarget
sourcepub fn builder() -> OwnedCircTargetBuilder
pub fn builder() -> OwnedCircTargetBuilder
Returns a fresh, default, builder
source§impl OwnedCircTarget
impl OwnedCircTarget
sourcepub fn from_circ_target<C>(target: &C) -> Selfwhere
C: CircTarget + ?Sized,
pub fn from_circ_target<C>(target: &C) -> Selfwhere
C: CircTarget + ?Sized,
Construct an OwnedCircTarget from a given CircTarget.
sourcepub fn chan_target_mut(&mut self) -> &mut OwnedChanTarget
pub fn chan_target_mut(&mut self) -> &mut OwnedChanTarget
Return a mutable view of this OwnedCircTarget as an OwnedChanTarget.
Trait Implementations§
source§impl ChanTarget for OwnedCircTarget
impl ChanTarget for OwnedCircTarget
source§fn display_chan_target(&self) -> DisplayChanTarget<'_, Self>where
Self: Sized,
fn display_chan_target(&self) -> DisplayChanTarget<'_, Self>where
Self: Sized,
Return a reference to this object suitable for formatting its
ChanTarget-specific members. Read moresource§impl CircTarget for OwnedCircTarget
impl CircTarget for OwnedCircTarget
source§impl Clone for OwnedCircTarget
impl Clone for OwnedCircTarget
source§fn clone(&self) -> OwnedCircTarget
fn clone(&self) -> OwnedCircTarget
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 OwnedCircTarget
impl Debug for OwnedCircTarget
source§impl HasAddrs for OwnedCircTarget
impl HasAddrs for OwnedCircTarget
source§fn addrs(&self) -> &[SocketAddr]
fn addrs(&self) -> &[SocketAddr]
Return the addresses listed for this server. Read more
source§impl HasChanMethod for OwnedCircTarget
impl HasChanMethod for OwnedCircTarget
source§fn chan_method(&self) -> ChannelMethod
fn chan_method(&self) -> ChannelMethod
Return the known ways to contact this
source§impl HasRelayIds for OwnedCircTarget
impl HasRelayIds for OwnedCircTarget
source§fn identity(&self, key_type: RelayIdType) -> Option<RelayIdRef<'_>>
fn identity(&self, key_type: RelayIdType) -> Option<RelayIdRef<'_>>
Return the identity of this relay whose type is
key_type, or None if
the relay has no such identity. Read moresource§fn identities(&self) -> RelayIdIter<'_, Self>
fn identities(&self) -> RelayIdIter<'_, Self>
Return an iterator over all of the identities held by this object.
source§fn ed_identity(&self) -> Option<&Ed25519Identity>
fn ed_identity(&self) -> Option<&Ed25519Identity>
Return the ed25519 identity for this relay if it has one.
source§fn rsa_identity(&self) -> Option<&RsaIdentity>
fn rsa_identity(&self) -> Option<&RsaIdentity>
Return the RSA identity for this relay if it has one.
source§fn has_identity(&self, id: RelayIdRef<'_>) -> bool
fn has_identity(&self, id: RelayIdRef<'_>) -> bool
Check whether the provided Id is a known identity of this relay. Read more
source§fn has_any_identity(&self) -> bool
fn has_any_identity(&self) -> bool
Return true if this object has any known identity.
source§fn same_relay_ids<T: HasRelayIds + ?Sized>(&self, other: &T) -> bool
fn same_relay_ids<T: HasRelayIds + ?Sized>(&self, other: &T) -> bool
Return true if this object has exactly the same relay IDs as
other.source§fn has_all_relay_ids_from<T: HasRelayIds + ?Sized>(&self, other: &T) -> bool
fn has_all_relay_ids_from<T: HasRelayIds + ?Sized>(&self, other: &T) -> bool
Return true if this object has every relay ID that
other does. Read moresource§fn cmp_by_relay_ids<T: HasRelayIds + ?Sized>(&self, other: &T) -> Ordering
fn cmp_by_relay_ids<T: HasRelayIds + ?Sized>(&self, other: &T) -> Ordering
Compare this object to another HasRelayIds. Read more