socks5_impl::protocol

Trait AsyncStreamOperation

Source
pub trait AsyncStreamOperation: StreamOperation {
    // Required method
    fn retrieve_from_async_stream<'life0, 'async_trait, R>(
        r: &'life0 mut R,
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
       where R: AsyncRead + Unpin + Send + ?Sized + 'async_trait,
             Self: Sized + 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn write_to_async_stream<'life0, 'life1, 'async_trait, W>(
        &'life0 self,
        w: &'life1 mut W,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where W: AsyncWrite + Unpin + Send + ?Sized + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Source

fn retrieve_from_async_stream<'life0, 'async_trait, R>( r: &'life0 mut R, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where R: AsyncRead + Unpin + Send + ?Sized + 'async_trait, Self: Sized + 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn write_to_async_stream<'life0, 'life1, 'async_trait, W>( &'life0 self, w: &'life1 mut W, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where W: AsyncWrite + Unpin + Send + ?Sized + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

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.

Implementors§

Source§

impl AsyncStreamOperation for Address

Source§

impl AsyncStreamOperation for socks5_impl::protocol::handshake::password_method::Request

Source§

impl AsyncStreamOperation for socks5_impl::protocol::handshake::password_method::Response

Source§

impl AsyncStreamOperation for socks5_impl::protocol::handshake::Request

Source§

impl AsyncStreamOperation for socks5_impl::protocol::handshake::Response

Source§

impl AsyncStreamOperation for socks5_impl::protocol::Request

Source§

impl AsyncStreamOperation for socks5_impl::protocol::Response

Source§

impl AsyncStreamOperation for UdpHeader