pub struct StreamReader<R: Read> {
    pub stream: BufReader<R>,
}
Available on crate feature std only.
Expand description

Struct used to configure stream reader function

Fields

stream: BufReader<R>

Stream to read from

Implementations

👎Deprecated since 0.28.0: wrap your stream into a buffered reader if necessary and use consensus_encode directly

Constructs new stream reader for a given input stream stream

👎Deprecated since 0.28.0: wrap your stream into a buffered reader if necessary and use consensus_encode directly

Reads stream and parses next message from its current input

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.