pub trait MonitorNewConnection {
type ConnectionMonitor: MonitorAsyncReadWrite;
// Required methods
fn new_connection_monitor(
&self,
endpoint: String,
) -> Self::ConnectionMonitor;
fn on_err(&self, endpoint: String);
}Required Associated Types§
Required Methods§
fn new_connection_monitor(&self, endpoint: String) -> Self::ConnectionMonitor
fn on_err(&self, endpoint: String)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".