1 2 3 4 5 6 7 8 9
use std::net::SocketAddr; /// A common items for bot sync and async. Shhould be implemented /// by each instance. pub trait SocketTapCommon { /// Returns the remote host Ip and port. fn get_remote_addr(&self) -> &SocketAddr; }