pub trait TcpListenerHandle: Stream<Item = (Self::StreamHandle, SocketAddr)> {
type StreamHandle: TcpStreamHandle;
// Required method
fn local_addr(&self) -> MfioResult<SocketAddr>;
}Available on crate feature
std only.Expand description
Describes operations performable on a TCP listener.
Required Associated Types§
Required Methods§
fn local_addr(&self) -> MfioResult<SocketAddr>
Implementors§
Source§impl TcpListenerHandle for NativeTcpListener
Available on crate feature native only.
impl TcpListenerHandle for NativeTcpListener
Available on crate feature
native only.