Skip to main content

AsyncSocket

Trait AsyncSocket 

Source
pub trait AsyncSocket:
    AsyncRead
    + AsyncWrite
    + Debug
    + Unpin
    + Send
    + 'static { }
Expand description

Type alias for necessary socket async traits.

Type alias exists to avoid repetition of traits in function signatures.

This type cannot be implemented directly, and there’s no need to.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A: AsyncRead + AsyncWrite + Debug + Unpin + Send + 'static> AsyncSocket for A

Auto-implement for all socket types.