Enum stream_inmemory::StreamError [−][src]
pub enum StreamError {
EOF,
ZeroLength,
}Expand description
Errors that can occurred if use read or peek funcs.
Inmemory stream has error EOF when try read them if it is empty.
Inmemory stream has error ZeroLength when try read them if buffer`s len is zero.
Variants
Trait 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.
Skip “count” bytes in stream. Return skipped bytes count.
Auto Trait Implementations
impl RefUnwindSafe for StreamErrorimpl Send for StreamErrorimpl Sync for StreamErrorimpl Unpin for StreamErrorimpl UnwindSafe for StreamErrorBlanket Implementations
Mutably borrows from an owned value. Read more