#[non_exhaustive]pub enum SomeSocketAddr {
Tcp(SocketAddr),
Unix(SocketAddr),
Stdio,
Multiple,
}
Expand description
Some form of accepted connection’s address.
Variant depends on variant used in [ListenerAddress
].
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl SomeSocketAddr
impl SomeSocketAddr
sourcepub fn clonable(self) -> SomeSocketAddrClonable
pub fn clonable(self) -> SomeSocketAddrClonable
Convert this address representation into a clonable form. For UNIX socket addresses, it converts them to a string using Debug representation.
Trait Implementations§
source§impl Debug for SomeSocketAddr
impl Debug for SomeSocketAddr
source§impl Display for SomeSocketAddr
impl Display for SomeSocketAddr
source§impl From<SomeSocketAddr> for SomeSocketAddrClonable
impl From<SomeSocketAddr> for SomeSocketAddrClonable
source§fn from(value: SomeSocketAddr) -> Self
fn from(value: SomeSocketAddr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SomeSocketAddr
impl RefUnwindSafe for SomeSocketAddr
impl Send for SomeSocketAddr
impl Sync for SomeSocketAddr
impl Unpin for SomeSocketAddr
impl UnwindSafe for SomeSocketAddr
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request