Enum segsource::Error [−][src]
pub enum Error { OffsetTooSmall { offset: usize, }, OffsetTooLarge { offset: usize, }, NotEnoughData { requested: usize, left: usize, }, NoMoreData, IoError { error: Error, }, Other { message: String, }, }
Expand description
The standard errors used by segsource.
Variants
Returned if an offset is too small.
Show fields
Fields of OffsetTooSmall
offset: usize
Returned if an offset is too large.
Show fields
Fields of OffsetTooLarge
offset: usize
Returned if there’s not enough data left in a crate::Segment
.
Returned if there’s no data left in a crate::Segment
relative to its.
crate::Segment::current_offset.
Wraps a std::io::Error
.
Show fields
Fields of IoError
error: Error
Any other sort of error.
Show fields
Fields of Other
message: String
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
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error