pub struct TransportAddrInfo { /* private fields */ }Expand description
Address of a remote with some metadata
Implementations§
Source§impl TransportAddrInfo
impl TransportAddrInfo
Sourcepub fn addr(&self) -> &TransportAddr
pub fn addr(&self) -> &TransportAddr
Returns the TransportAddr.
Sourcepub fn into_addr(self) -> TransportAddr
pub fn into_addr(self) -> TransportAddr
Converts into TransportAddr.
Sourcepub fn usage(&self) -> TransportAddrUsage
pub fn usage(&self) -> TransportAddrUsage
Returns information how this address is used.
Trait Implementations§
Source§impl Clone for TransportAddrInfo
impl Clone for TransportAddrInfo
Source§fn clone(&self) -> TransportAddrInfo
fn clone(&self) -> TransportAddrInfo
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 Debug for TransportAddrInfo
impl Debug for TransportAddrInfo
Source§impl From<TransportAddrInfo> for TransportAddr
impl From<TransportAddrInfo> for TransportAddr
Source§fn from(value: TransportAddrInfo) -> Self
fn from(value: TransportAddrInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransportAddrInfo
impl RefUnwindSafe for TransportAddrInfo
impl Send for TransportAddrInfo
impl Sync for TransportAddrInfo
impl Unpin for TransportAddrInfo
impl UnwindSafe for TransportAddrInfo
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