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