pub trait SocketLocalAddress: SocketOperation {
// Required method
fn socket_local_address(
&self,
socket: &Self::Socket,
) -> Result<SocketAddress>;
}Expand description
Inspect the local IP address of a socket.
Required Methods§
Sourcefn socket_local_address(&self, socket: &Self::Socket) -> Result<SocketAddress>
fn socket_local_address(&self, socket: &Self::Socket) -> Result<SocketAddress>
Return the local address the socket is bound to.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".