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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<SA: PartialEq, HN: PartialEq> PartialEq for BridgeAddrInner<SA, HN>
impl<SA: PartialEq, HN: PartialEq> PartialEq for BridgeAddrInner<SA, HN>
Source§fn eq(&self, other: &BridgeAddrInner<SA, HN>) -> bool
fn eq(&self, other: &BridgeAddrInner<SA, HN>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§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.Source§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.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.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> UnsafeUnpin for BridgeAddrInner<SA, HN>where
SA: UnsafeUnpin,
HN: UnsafeUnpin,
impl<SA, HN> UnwindSafe for BridgeAddrInner<SA, HN>where
SA: UnwindSafe,
HN: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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