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