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 ChanTarget for OwnedCircTarget
impl ChanTarget for OwnedCircTarget
sourcefn addrs(&self) -> &[SocketAddr]
fn addrs(&self) -> &[SocketAddr]
Return the addresses at which you can connect to this relay
sourcefn ed_identity(&self) -> &Ed25519Identity
fn ed_identity(&self) -> &Ed25519Identity
Return the ed25519 identity for this relay.
sourcefn rsa_identity(&self) -> &RsaIdentity
fn rsa_identity(&self) -> &RsaIdentity
Return the RSA identity for this relay.
sourcefn ed_identity_key(&self) -> Option<PublicKey>
fn ed_identity_key(&self) -> Option<PublicKey>
Return the ed25519 identity key for this relay, if it is valid. Read more
sourceimpl CircTarget for OwnedCircTarget
impl CircTarget for OwnedCircTarget
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
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