Trait Socks5UdpAssociatorSeal

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

Required Methods§

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

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> Socks5UdpAssociatorSeal<S> for ()
where S: Stream + Unpin,

§

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

Implementors§

§

impl<B, I, S> Socks5UdpAssociatorSeal<S> for UdpRelay<B, I>
where B: SocketService<Socket = UdpSocket>, I: UdpPacketProxy, S: Stream + Unpin,