Enum scroll::Error [] [src]

pub enum Error {
    BadOffset(usize),
    BadRange {
        range: Range<usize>,
        size: usize,
    },
    BadInput {
        range: Range<usize>,
        size: usize,
        msg: &'static str,
    },
    Custom(String),
    IO(Error),
}

A custom Scroll error

Variants

The requested offset to read/write at is invalid

The requested range to read/write at is invalid for the size of the provided object

Fields of BadRange

The data at the given range is invalid

Fields of BadInput

A custom Scroll error for reporting messages to clients

Returned when IO based errors are encountered

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more