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
TooBig
The type you tried to read was too big
Fields of TooBig
size: T | |
len: T |
BadOffset(T)
The requested offset to read/write at is invalid
BadInput
Fields of BadInput
size: T | |
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<T: Debug> Debug for Error<T>
[src]
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more