use std::net::SocketAddr; pub trait Endpoint: Into + From + Send {} impl Endpoint for T where T: Into + From + Send {}