pub enum PersistError {
Io(Error),
Magic,
Version {
found: u32,
expected: u32,
},
Csr(CsrError),
Count {
found: usize,
nodes: u32,
},
}Expand description
A failure while reading or writing the layout.
Variants§
Io(Error)
An I/O failure.
Magic
The bytes do not start with the graph magic.
Version
The layout version is not the one this build reads.
Csr(CsrError)
The adjacency arrays are inconsistent.
Count
The bitmap lists do not match the node count.
Trait Implementations§
Source§impl Debug for PersistError
impl Debug for PersistError
Source§impl Display for PersistError
impl Display for PersistError
Source§impl Error for PersistError
impl Error for PersistError
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<CsrError> for PersistError
impl From<CsrError> for PersistError
Auto Trait Implementations§
impl !RefUnwindSafe for PersistError
impl !UnwindSafe for PersistError
impl Freeze for PersistError
impl Send for PersistError
impl Sync for PersistError
impl Unpin for PersistError
impl UnsafeUnpin for PersistError
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