Enum salvo::addr::SocketAddr [−][src]
pub enum SocketAddr {
IPv4(SocketAddrV4),
IPv6(SocketAddrV6),
Unix(Arc<SocketAddr>),
}
Expand description
Network socket address
Variants
IPv4(SocketAddrV4)
IPv4 socket address
Tuple Fields of IPv4
0: SocketAddrV4
IPv6(SocketAddrV6)
IPv6 socket address
Tuple Fields of IPv6
0: SocketAddrV6
Unix(Arc<SocketAddr>)
Unix socket address
Tuple Fields of Unix
0: Arc<SocketAddr>
Implementations
Returns ipv6 socket address.
Returns ipv4 socket address.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnwindSafe for SocketAddr
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