Struct packet_stream_codec::CodecStream [] [src]

pub struct CodecStream<R> { /* fields omitted */ }

This stream decodes pairs of data and metadata from the wrapped AsyncRead of type R.

Methods

impl<R> CodecStream<R>
[src]

[src]

Create a new CodecStream, wrapping the given reader.

[src]

Consume the CodecStream to retrieve ownership of the inner reader.

Trait Implementations

impl<R: AsyncRead> Stream for CodecStream<R>
[src]

Values yielded by the stream.

Errors yielded by the stream.

[src]

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Auto Trait Implementations

impl<R> Send for CodecStream<R> where
    R: Send

impl<R> Sync for CodecStream<R> where
    R: Sync