Enum scroll::Error [−][src]
pub enum Error {
TooBig {
size: usize,
len: usize,
},
BadOffset(usize),
BadInput {
size: usize,
msg: &'static str,
},
Custom(String),
IO(Error),
}
Expand description
A custom Scroll error
Variants
TooBig
The type you tried to read was too big
BadOffset(usize)
Tuple Fields
0: usize
The requested offset to read/write at is invalid
BadInput
Custom(String)
Tuple Fields
0: String
A custom Scroll error for reporting messages to clients
IO(Error)
Tuple Fields
0: Error
Returned when IO based errors are encountered
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more