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
sourceimpl OwnedCircTarget
impl OwnedCircTarget
sourcepub fn new(
chan_target: OwnedChanTarget,
ntor_onion_key: PublicKey,
protovers: Protocols
) -> OwnedCircTarget
pub fn new(
chan_target: OwnedChanTarget,
ntor_onion_key: PublicKey,
protovers: Protocols
) -> OwnedCircTarget
Construct a new OwnedCircTarget from its parts.
sourcepub fn from_circ_target<C>(target: &C) -> Self where
C: CircTarget + ?Sized,
pub fn from_circ_target<C>(target: &C) -> Self where
C: CircTarget + ?Sized,
Construct an OwnedCircTarget from a given CircTarget.
Trait Implementations
sourceimpl CircTarget for OwnedCircTarget
impl CircTarget for OwnedCircTarget
sourcefn ntor_onion_key(&self) -> &PublicKey
fn ntor_onion_key(&self) -> &PublicKey
Return the ntor onion key for this relay
sourceimpl Clone for OwnedCircTarget
impl Clone for OwnedCircTarget
sourcefn clone(&self) -> OwnedCircTarget
fn clone(&self) -> OwnedCircTarget
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OwnedCircTarget
impl Debug for OwnedCircTarget
sourceimpl Display for OwnedCircTarget
impl Display for OwnedCircTarget
Primarily for error reporting and logging
sourceimpl HasAddrs for OwnedCircTarget
impl HasAddrs for OwnedCircTarget
sourcefn addrs(&self) -> &[SocketAddr]
fn addrs(&self) -> &[SocketAddr]
Return the addresses at which you can connect to this server.
sourceimpl HasRelayIds for OwnedCircTarget
impl HasRelayIds for OwnedCircTarget
sourcefn 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 more
sourcefn identities(&self) -> RelayIdIter<'_, Self>
fn identities(&self) -> RelayIdIter<'_, Self>
Return an iterator over all of the identities held by this object.
sourcefn ed_identity(&self) -> Option<&Ed25519Identity>
fn ed_identity(&self) -> Option<&Ed25519Identity>
Return the ed25519 identity for this relay if it has one.
sourcefn rsa_identity(&self) -> Option<&RsaIdentity>
fn rsa_identity(&self) -> Option<&RsaIdentity>
Return the RSA identity for this relay if it has one.
sourcefn 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
sourcefn 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.
sourcefn 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 more
impl ChanTarget for OwnedCircTarget
Auto Trait Implementations
impl RefUnwindSafe for OwnedCircTarget
impl Send for OwnedCircTarget
impl Sync for OwnedCircTarget
impl Unpin for OwnedCircTarget
impl UnwindSafe for OwnedCircTarget
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more