Skip to main content

AcceptorProxyInterface

Trait AcceptorProxyInterface 

Source
pub trait AcceptorProxyInterface: Send + Sync {
    type AcceptResponseFut: Future<Output = Result<Option<Box<ConnectionTransport>>, Error>> + Send;

    // Required method
    fn accept(&self, addr: &Addr) -> Self::AcceptResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn accept(&self, addr: &Addr) -> Self::AcceptResponseFut

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§