pub trait TakeBytesError: Error {
    // Required method
    fn eof() -> Self;
}
Expand description

Error type for the TakeBytes trait.

TakeBytes can generate one error: Not enough data are available in the source. This kind of error can be created with TakeBytesError::eof().

Required Methods§

source

fn eof() -> Self

Creates an EOF error.

This error should be raised if the source has not anough data available.

Object Safety§

This trait is not object safe.

Implementors§