enum BridgeAddrInner<SA, HN> {
IpPort(SA),
HostPort(HN, u16),
}
Expand description
BridgeAddr
contents; type parameters allow use with references to avoid some copying
SA
is always SocketAddr
or &SocketAddr
.
HN
is always String
or &str
.
Variants§
Trait Implementations§
Source§impl<SA: Clone, HN: Clone> Clone for BridgeAddrInner<SA, HN>
impl<SA: Clone, HN: Clone> Clone for BridgeAddrInner<SA, HN>
Source§fn clone(&self) -> BridgeAddrInner<SA, HN>
fn clone(&self) -> BridgeAddrInner<SA, HN>
Returns a duplicate 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<SA: Debug + Redactable, HN: Debug + Display + AsRef<str>> Redactable for BridgeAddrInner<SA, HN>
impl<SA: Debug + Redactable, HN: Debug + Display + AsRef<str>> Redactable for BridgeAddrInner<SA, HN>
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.§fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result<(), Error>
As
Debug::fmt
, but produce a redacted representation.§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.
§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.impl<SA: Eq, HN: Eq> Eq for BridgeAddrInner<SA, HN>
impl<SA, HN> StructuralPartialEq for BridgeAddrInner<SA, HN>
Auto Trait Implementations§
impl<SA, HN> Freeze for BridgeAddrInner<SA, HN>
impl<SA, HN> RefUnwindSafe for BridgeAddrInner<SA, HN>where
SA: RefUnwindSafe,
HN: RefUnwindSafe,
impl<SA, HN> Send for BridgeAddrInner<SA, HN>
impl<SA, HN> Sync for BridgeAddrInner<SA, HN>
impl<SA, HN> Unpin for BridgeAddrInner<SA, HN>
impl<SA, HN> UnwindSafe for BridgeAddrInner<SA, HN>where
SA: UnwindSafe,
HN: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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