Trait Socks5BinderSeal

pub trait Socks5BinderSeal<S>:
    Send
    + Sync
    + 'static {
    // Required method
    fn accept_bind(
        &self,
        ctx: Context,
        stream: S,
        destination: Authority,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}

Required Methods§

fn accept_bind( &self, ctx: Context, stream: S, destination: Authority, ) -> impl Future<Output = Result<(), Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<S> Socks5BinderSeal<S> for ()
where S: Stream + Unpin,

§

async fn accept_bind( &self, _ctx: Context, stream: S, destination: Authority, ) -> Result<(), Error>

Implementors§

§

impl<S, F, StreamService> Socks5BinderSeal<S> for Binder<F, StreamService>
where S: Stream + Unpin, F: SocketService, <F as SocketService>::Socket: Acceptor, <<F as SocketService>::Socket as Acceptor>::Stream: Unpin, StreamService: Service<ProxyRequest<S, <<F as SocketService>::Socket as Acceptor>::Stream>, Response = ()>, <StreamService as Service<ProxyRequest<S, <<F as SocketService>::Socket as Acceptor>::Stream>>>::Error: Into<Box<dyn Error + Sync + Send>>,