pub trait ControlChannel: Send + Sync {
// Required methods
fn request(
&self,
message: &str,
) -> impl Future<Output = Result<ControlMessage>> + Send;
fn reconnect(&self) -> impl Future<Output = Result<()>> + Send;
// Provided method
fn post_authentication(&self) -> impl Future<Output = ()> + Send { ... }
}Required Methods§
fn request( &self, message: &str, ) -> impl Future<Output = Result<ControlMessage>> + Send
fn reconnect(&self) -> impl Future<Output = Result<()>> + Send
Provided Methods§
fn post_authentication(&self) -> impl Future<Output = ()> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".