pub struct OwnedChanTarget { /* private fields */ }
Expand description
OwnedChanTarget is a summary of a ChanTarget
that owns all of its
members.
Implementations§
Source§impl OwnedChanTarget
impl OwnedChanTarget
Sourcepub fn builder() -> OwnedChanTargetBuilder
pub fn builder() -> OwnedChanTargetBuilder
Returns a fresh, default, builder
Source§impl OwnedChanTarget
impl OwnedChanTarget
Sourcepub fn from_chan_target<C>(target: &C) -> Selfwhere
C: ChanTarget + ?Sized,
pub fn from_chan_target<C>(target: &C) -> Selfwhere
C: ChanTarget + ?Sized,
Construct a OwnedChanTarget from a given ChanTarget.
Sourcepub fn chan_method_mut(&mut self) -> &mut ChannelMethod
pub fn chan_method_mut(&mut self) -> &mut ChannelMethod
Return a mutable reference to this OwnedChanTarget
’s ChannelMethod
Trait Implementations§
Source§impl ChanTarget for OwnedChanTarget
impl ChanTarget for OwnedChanTarget
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 Clone for OwnedChanTarget
impl Clone for OwnedChanTarget
Source§fn clone(&self) -> OwnedChanTarget
fn clone(&self) -> OwnedChanTarget
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 OwnedChanTarget
impl Debug for OwnedChanTarget
Source§impl Display for OwnedChanTarget
Primarily for error reporting and logging
impl Display for OwnedChanTarget
Primarily for error reporting and logging
Source§impl HasAddrs for OwnedChanTarget
impl HasAddrs for OwnedChanTarget
Source§fn addrs(&self) -> &[SocketAddr]
fn addrs(&self) -> &[SocketAddr]
Return the addresses listed for this server. Read more
Source§impl HasChanMethod for OwnedChanTarget
impl HasChanMethod for OwnedChanTarget
Source§fn chan_method(&self) -> ChannelMethod
fn chan_method(&self) -> ChannelMethod
Return the known ways to contact this
Source§impl HasRelayIds for OwnedChanTarget
impl HasRelayIds for OwnedChanTarget
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.Source§impl IntoOwnedChanTarget for OwnedChanTarget
impl IntoOwnedChanTarget for OwnedChanTarget
Source§fn to_owned(self) -> OwnedChanTarget
fn to_owned(self) -> OwnedChanTarget
Convert this value into an
OwnedChanTarget
.Source§fn to_logged(self) -> LoggedChanTargetwhere
Self: Sized,
fn to_logged(self) -> LoggedChanTargetwhere
Self: Sized,
Convert this value into an
LoggedChanTarget
.Source§impl Redactable for OwnedChanTarget
impl Redactable for OwnedChanTarget
Source§fn display_redacted(&self, f: &mut Formatter<'_>) -> Result
fn display_redacted(&self, f: &mut Formatter<'_>) -> Result
As
Display::fmt
, but produce a redacted representation.Source§fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result
fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result
As
Debug::fmt
, but produce a redacted representation.Source§fn redacted(&self) -> Redacted<&Self>
fn redacted(&self) -> Redacted<&Self>
Return a smart pointer that will display or debug this object as its
redacted form.
Source§fn maybe_redacted(&self, redact: bool) -> MaybeRedacted<&Self>
fn maybe_redacted(&self, redact: bool) -> MaybeRedacted<&Self>
Return a smart pointer that redacts this object if
redact
is true.Auto Trait Implementations§
impl Freeze for OwnedChanTarget
impl RefUnwindSafe for OwnedChanTarget
impl Send for OwnedChanTarget
impl Sync for OwnedChanTarget
impl Unpin for OwnedChanTarget
impl UnwindSafe for OwnedChanTarget
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