Skip to main content

SocketPeerAddress

Trait SocketPeerAddress 

Source
pub trait SocketPeerAddress: SocketOperation {
    // Required method
    fn socket_peer_address(
        &self,
        socket: &Self::Socket,
    ) -> Result<SocketAddress>;
}
Expand description

Inspect the connected peer address of a socket.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§