blob: aa4dfd72cc785d8a23ae03e3624b7420aebae353 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
use std::net::SocketAddr;
/* The generic implementation (not supporting "sticky-sockets"),
* is to simply use SocketAddr directly as the endpoint.
*/
pub trait Endpoint: Into<SocketAddr> {}
impl<T> Endpoint for T where T: Into<SocketAddr> {}
|