Trait Socks5UdpAssociatorSeal

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

Required Methods§

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

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, State> Socks5UdpAssociatorSeal<S, State> for ()
where S: Stream + Unpin, State: Clone + Send + Sync + 'static,

§

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

Implementors§

§

impl<B, I, S, State> Socks5UdpAssociatorSeal<S, State> for UdpRelay<B, I>
where B: SocketService<State, Socket = UdpSocket>, I: UdpPacketProxy<State>, S: Stream + Unpin, State: Clone + Send + Sync + 'static,