pub enum PageSourceError {
Short {
got: u64,
expected: u64,
},
Open(String),
Io(Error),
}Expand description
Error variants surfaced from a PageSource.
Variants§
Short
The source returned fewer bytes than page_size.
Open(String)
The operator-supplied path / UDS could not be opened.
Io(Error)
Underlying I/O failure.
Trait Implementations§
Source§impl Debug for PageSourceError
impl Debug for PageSourceError
Source§impl Display for PageSourceError
impl Display for PageSourceError
Source§impl Error for PageSourceError
impl Error for PageSourceError
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()
Source§impl From<Error> for PageSourceError
impl From<Error> for PageSourceError
Source§impl From<PageSourceError> for PagerError
impl From<PageSourceError> for PagerError
Source§fn from(source: PageSourceError) -> Self
fn from(source: PageSourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageSourceError
impl !RefUnwindSafe for PageSourceError
impl Send for PageSourceError
impl Sync for PageSourceError
impl Unpin for PageSourceError
impl UnsafeUnpin for PageSourceError
impl !UnwindSafe for PageSourceError
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