pub enum ImportFileRegionError {
FileLengthExceedsMemoryLength {
file_length: u64,
memory_length: u64,
},
Seek(Error),
Read(Error),
ImportPages(Error),
Overflow,
}Expand description
Error returned by ChunkBuf::import_file_region.
Variants§
FileLengthExceedsMemoryLength
The file length exceeds the memory length.
Seek(Error)
Failed to seek the file.
Read(Error)
Failed to read the file.
ImportPages(Error)
Failed to import pages.
Overflow
Address computation overflowed.
Trait Implementations§
Source§impl Debug for ImportFileRegionError
impl Debug for ImportFileRegionError
Source§impl Display for ImportFileRegionError
impl Display for ImportFileRegionError
Source§impl Error for ImportFileRegionError
impl Error for ImportFileRegionError
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 ImportFileRegionError
impl !RefUnwindSafe for ImportFileRegionError
impl Send for ImportFileRegionError
impl Sync for ImportFileRegionError
impl Unpin for ImportFileRegionError
impl !UnwindSafe for ImportFileRegionError
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