#[non_exhaustive]pub enum SomeSocketAddrClonable {
Tcp(SocketAddr),
Unix(Arc<SocketAddr>),
Stdio,
Multiple,
}
Expand description
Other representation of SomeSocketAddr
with Arc-wrapped Unix addresses to enable cloning
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.
Trait Implementations§
source§impl Clone for SomeSocketAddrClonable
impl Clone for SomeSocketAddrClonable
source§fn clone(&self) -> SomeSocketAddrClonable
fn clone(&self) -> SomeSocketAddrClonable
Returns a copy 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 Connected<IncomingStream<'_>> for SomeSocketAddrClonable
impl Connected<IncomingStream<'_>> for SomeSocketAddrClonable
source§fn connect_info(target: IncomingStream<'_>) -> Self
fn connect_info(target: IncomingStream<'_>) -> Self
Create type holding information about the connection.
source§impl Debug for SomeSocketAddrClonable
impl Debug for SomeSocketAddrClonable
source§impl Display for SomeSocketAddrClonable
impl Display for SomeSocketAddrClonable
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 SomeSocketAddrClonable
impl RefUnwindSafe for SomeSocketAddrClonable
impl Send for SomeSocketAddrClonable
impl Sync for SomeSocketAddrClonable
impl Unpin for SomeSocketAddrClonable
impl UnwindSafe for SomeSocketAddrClonable
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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