Struct tor_linkspec::OwnedChanTarget
source · [−]pub struct OwnedChanTarget { /* private fields */ }
Expand description
OwnedChanTarget is a summary of a ChanTarget
that owns all of its
members.
Implementations
sourceimpl OwnedChanTarget
impl OwnedChanTarget
sourcepub fn new(
addrs: Vec<SocketAddr>,
ed_identity: Ed25519Identity,
rsa_identity: RsaIdentity
) -> Self
pub fn new(
addrs: Vec<SocketAddr>,
ed_identity: Ed25519Identity,
rsa_identity: RsaIdentity
) -> Self
Construct a new OwnedChanTarget from its parts.
sourcepub fn from_chan_target<C>(target: &C) -> Self where
C: ChanTarget + ?Sized,
pub fn from_chan_target<C>(target: &C) -> Self where
C: ChanTarget + ?Sized,
Construct a OwnedChanTarget from a given ChanTarget.
Trait Implementations
sourceimpl ChanTarget for OwnedChanTarget
impl ChanTarget for OwnedChanTarget
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 Clone for OwnedChanTarget
impl Clone for OwnedChanTarget
sourcefn clone(&self) -> OwnedChanTarget
fn clone(&self) -> OwnedChanTarget
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 OwnedChanTarget
impl Debug for OwnedChanTarget
Auto Trait Implementations
impl RefUnwindSafe for OwnedChanTarget
impl Send for OwnedChanTarget
impl Sync for OwnedChanTarget
impl Unpin for OwnedChanTarget
impl UnwindSafe for OwnedChanTarget
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