pub trait Connection<S: ?Sized> {
// Required methods
fn client_socket(&self) -> &S;
fn server_socket(&self) -> &S;
fn tls_version(&self) -> Option<ProtocolVersion>;
// Provided method
fn is_tls(&self) -> bool { ... }
}pub trait Connection<S: ?Sized> {
// Required methods
fn client_socket(&self) -> &S;
fn server_socket(&self) -> &S;
fn tls_version(&self) -> Option<ProtocolVersion>;
// Provided method
fn is_tls(&self) -> bool { ... }
}