Skip to main content

ScoConnectionProxyInterface

Trait ScoConnectionProxyInterface 

Source
pub trait ScoConnectionProxyInterface: Send + Sync {
    type ReadResponseFut: Future<Output = Result<ScoConnectionReadResponse, Error>> + Send;
    type WriteResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn read(&self) -> Self::ReadResponseFut;
    fn write(
        &self,
        payload: &ScoConnectionWriteRequest,
    ) -> Self::WriteResponseFut;
    fn request_disconnect(&self) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§