pub enum Addr {
SocketAddr(SocketAddr),
Unix(Arc<SocketAddr>),
Custom(&'static str, Cow<'static, str>),
}
Expand description
An network address.
Variants
SocketAddr(SocketAddr)
Internet socket address
Unix(Arc<SocketAddr>)
This is supported on Unix only.
Unix domain socket address
Custom(&'static str, Cow<'static, str>)
Custom address
Implementations
Create a internet socket address.
This is supported on Unix only.
This is supported on Unix only.
Create a unix socket address.
Create a custom address.
If the address is a internet socket address, returns it. Returns None otherwise.
This is supported on Unix only.
This is supported on Unix only.
If the address is a unix socket address, returns it. Returns None otherwise.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Addr
impl UnwindSafe for Addr
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more