pub trait CreateListener {
type Listener: Listen;
const CONFIG_LISTENER_NAME: &'static str;
// Required method
fn create_listener(
&self,
) -> impl Future<Output = Result<(Config, Self::Listener), Box<dyn Error + Send + Sync>>> + Send;
}
Required Associated Constants§
const CONFIG_LISTENER_NAME: &'static str
Required Associated Types§
Required Methods§
fn create_listener( &self, ) -> impl Future<Output = Result<(Config, Self::Listener), Box<dyn Error + Send + Sync>>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.