Struct stream_inmemory::Stream [−][src]
pub struct Stream { /* fields omitted */ }Expand description
Dynamically sized inmemory stream.
Used as buffer with read, write and peek funcs.
Implementations
Peek one byte from stream, position don’t shift.
Can return EOF error.
Peek bytes from stream, position don’t shift.
Can return EOF, ZeroLength errors.
Read one byte from stream, position shifted.
Can return EOF error.
Read bytes from stream, position shifted.
Can return EOF, ZeroLength errors.
Write one byte to stream.
Skip “count” bytes in stream. Return skipped bytes count.
Clear bytes that have been read. Has no effect on the allocated capacity.
Truncate the capacity of the stream as much as possible.
Auto Trait Implementations
impl RefUnwindSafe for Streamimpl UnwindSafe for Stream