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§fn ntor_onion_key(&self) -> &PublicKey
fn ntor_onion_key(&self) -> &PublicKey
Return the ntor onion key for this relay
Source§fn linkspecs(&self) -> EncodeResult<Vec<EncodedLinkSpec>>
fn linkspecs(&self) -> EncodeResult<Vec<EncodedLinkSpec>>
Return a new vector of encoded link specifiers for this relay. Read more
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 has_any_relay_id_from<T: HasRelayIds + ?Sized>(&self, other: &T) -> bool
fn has_any_relay_id_from<T: HasRelayIds + ?Sized>(&self, other: &T) -> bool
Return true if this object has any relay ID that
other
has. 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
Source§fn display_relay_ids(&self) -> DisplayRelayIds<'_, Self>
fn display_relay_ids(&self) -> DisplayRelayIds<'_, Self>
Return a reference to this object suitable for formatting its
HasRelayIds
members.Auto Trait Implementations§
impl Freeze for OwnedCircTarget
impl RefUnwindSafe for OwnedCircTarget
impl Send for OwnedCircTarget
impl Sync for OwnedCircTarget
impl Unpin for OwnedCircTarget
impl UnwindSafe for OwnedCircTarget
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more