Skip to main content

PgByteStream

Trait PgByteStream 

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

Trait for a byte stream that can be used for pg protocol.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<S> PgByteStream for S
where S: AsyncWrite + AsyncRead + Unpin + Send + 'static,