pub(crate) struct SocketAddrStr(SocketAddr, ArrayString<SOCKET_ADDRESS_MAX_LEN>);Expand description
Caches the string representation of a SocketAddr for fast conversion to &str
Tuple Fields§
§0: SocketAddr§1: ArrayString<SOCKET_ADDRESS_MAX_LEN>Implementations§
Trait Implementations§
Source§impl AsRef<SocketAddr> for SocketAddrStr
impl AsRef<SocketAddr> for SocketAddrStr
Source§fn as_ref(&self) -> &SocketAddr
fn as_ref(&self) -> &SocketAddr
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for SocketAddrStr
impl Clone for SocketAddrStr
Source§fn clone(&self) -> SocketAddrStr
fn clone(&self) -> SocketAddrStr
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 SocketAddrStr
impl Debug for SocketAddrStr
Source§impl Display for SocketAddrStr
impl Display for SocketAddrStr
Source§impl From<SocketAddr> for SocketAddrStr
impl From<SocketAddr> for SocketAddrStr
Source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl Hash for SocketAddrStr
impl Hash for SocketAddrStr
Source§impl PartialEq<SocketAddrStr> for SocketAddr
impl PartialEq<SocketAddrStr> for SocketAddr
Source§impl PartialEq for SocketAddrStr
impl PartialEq for SocketAddrStr
impl Copy for SocketAddrStr
impl Eq for SocketAddrStr
Auto Trait Implementations§
impl Freeze for SocketAddrStr
impl RefUnwindSafe for SocketAddrStr
impl Send for SocketAddrStr
impl Sync for SocketAddrStr
impl Unpin for SocketAddrStr
impl UnwindSafe for SocketAddrStr
Blanket Implementations§
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
Compare self to
key and return true if they are equal.§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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.