pub trait HasConnectionInfo {
type Addr: Display + Debug + Send;
// Required method
fn info(&self) -> ConnectionInfo<Self::Addr>;
}Expand description
Trait for types which can provide connection information.
Required Associated Types§
Required Methods§
Sourcefn info(&self) -> ConnectionInfo<Self::Addr>
fn info(&self) -> ConnectionInfo<Self::Addr>
Get the connection information for this stream.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".