Skip to main content

SimpleProxyInterface

Trait SimpleProxyInterface 

Source
pub trait SimpleProxyInterface: Send + Sync {
    type AddResponseFut: Future<Output = Result<u16, Error>> + Send;

    // Required method
    fn add(&self, augend: u8, addend: u8) -> Self::AddResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn add(&self, augend: u8, addend: u8) -> Self::AddResponseFut

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§