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
BadOffset(usize)
The requested offset to read/write at is invalid
BadRange
The requested range to read/write at is invalid for the size of the provided object
Fields of BadRange
range: Range<usize> | |
size: usize |
BadInput
The data at the given range is invalid
Fields of BadInput
range: Range<usize> | |
size: usize | |
msg: &'static str |
Custom(String)
A custom Scroll error for reporting messages to clients
IO(Error)
Returned when IO based errors are encountered
Trait Implementations
impl Debug for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more