SocketTapCommon

Trait SocketTapCommon 

Source
pub trait SocketTapCommon {
    // Required method
    fn get_remote_addr(&self) -> &SocketAddr;
}
Expand description

A common items for bot sync and async. Shhould be implemented by each instance.

Required Methods§

Source

fn get_remote_addr(&self) -> &SocketAddr

Returns the remote host Ip and port.

Implementors§

Source§

impl<T: AsFd, LOC> SocketTapCommon for NetworkTap<T, LOC>