Skip to main content

StationIo

Trait StationIo 

Source
pub trait StationIo:
    AsyncRead
    + AsyncWrite
    + Unpin
    + Send { }
Expand description

Bidirectional asynchronous byte stream accepted by a station session.

The protocol server owns the stream after admission and applies identical framing, backpressure, registration, and shutdown behavior regardless of the underlying transport. A transport adapter may implement this trait with a plain socket, a decrypted secure stream, or an in-memory test stream.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> StationIo for T
where T: AsyncRead + AsyncWrite + Unpin + Send,