pub enum RelationsError {
OutOfRange {
from: u32,
kind: u32,
target: u32,
nodes: u32,
types: u32,
},
Io(Error),
Magic,
Version {
found: u32,
expected: u32,
},
Inconsistent,
Name(FromUtf8Error),
}Expand description
A failure while building, reading, or writing the relations.
Variants§
OutOfRange
An edge names a node or a type beyond the declared counts.
Fields
Io(Error)
An I/O failure.
Magic
The bytes do not start with the relations magic.
Version
The layout version is not the one this build reads.
Inconsistent
The arrays are inconsistent.
Name(FromUtf8Error)
A type name is not UTF-8.
Trait Implementations§
Source§impl Debug for RelationsError
impl Debug for RelationsError
Source§impl Display for RelationsError
impl Display for RelationsError
Source§impl Error for RelationsError
impl Error for RelationsError
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 RelationsError
impl From<Error> for RelationsError
Source§impl From<FromUtf8Error> for RelationsError
impl From<FromUtf8Error> for RelationsError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RelationsError
impl !UnwindSafe for RelationsError
impl Freeze for RelationsError
impl Send for RelationsError
impl Sync for RelationsError
impl Unpin for RelationsError
impl UnsafeUnpin for RelationsError
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