pub enum RandomAccessError {
OutOfBounds {
offset: u64,
end: Option<u64>,
length: u64,
},
IO {
return_code: Option<i32>,
context: Option<String>,
source: Error,
},
}
Expand description
Error type for the RandomAccess trait methods.
Variants§
Trait Implementations§
Source§impl Debug for RandomAccessError
impl Debug for RandomAccessError
Source§impl Display for RandomAccessError
impl Display for RandomAccessError
Source§impl Error for RandomAccessError
impl Error for RandomAccessError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RandomAccessError
impl !RefUnwindSafe for RandomAccessError
impl Send for RandomAccessError
impl Sync for RandomAccessError
impl Unpin for RandomAccessError
impl !UnwindSafe for RandomAccessError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more