Enum scroll::Error[][src]

pub enum Error<T = usize> {
    TooBig {
        size: T,
        len: T,
    },
    BadOffset(T),
    BadInput {
        size: T,
        msg: &'static str,
    },
    Custom(String),
    IO(Error),
}

A custom Scroll error

Variants

The type you tried to read was too big

Fields of TooBig

The requested offset to read/write at is invalid

Fields of BadInput

A custom Scroll error for reporting messages to clients

Returned when IO based errors are encountered

Trait Implementations

impl<T: Debug> Debug for Error<T>
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. 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

Auto Trait Implementations

impl<T> Send for Error<T> where
    T: Send

impl<T> Sync for Error<T> where
    T: Sync