Skip to main content

SocketLocalAddress

Trait SocketLocalAddress 

Source
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§

Source

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".

Implementors§