Skip to main content

Socks5BinderSeal

Trait Socks5BinderSeal 

pub trait Socks5BinderSeal<S>:
    Send
    + Sync
    + 'static {
    // Required method
    fn accept_bind(
        &self,
        stream: S,
        destination: HostWithPort,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}
Available on crate feature socks5 only.

Required Methods§

fn accept_bind( &self, stream: S, destination: HostWithPort, ) -> 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".

Implementations on Foreign Types§

§

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

§

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

Implementors§

§

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