Skip to main content

ControlChannel

Trait ControlChannel 

Source
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§

Source

fn request( &self, message: &str, ) -> impl Future<Output = Result<ControlMessage>> + Send

Source

fn reconnect(&self) -> impl Future<Output = Result<()>> + Send

Provided Methods§

Source

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".

Implementors§