pub enum RefsetsError {
Arity {
refset: u64,
values: usize,
fields: usize,
},
TooMany(TryFromIntError),
Io(Error),
Magic,
Version {
found: u32,
expected: u32,
},
Inconsistent,
Text(FromUtf8Error),
}Expand description
A failure while building, reading, or writing the members.
Variants§
Arity
A row has a different number of values than the table has fields.
Fields
TooMany(TryFromIntError)
More rows or interned values than the u32 offsets address.
Io(Error)
An I/O failure.
Magic
The bytes do not start with the members magic.
Version
The layout version is not the one this build reads.
Inconsistent
The arrays are inconsistent.
Text(FromUtf8Error)
A name or value is not UTF-8.
Trait Implementations§
Source§impl Debug for RefsetsError
impl Debug for RefsetsError
Source§impl Display for RefsetsError
impl Display for RefsetsError
Source§impl Error for RefsetsError
impl Error for RefsetsError
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 RefsetsError
impl From<Error> for RefsetsError
Source§impl From<FromUtf8Error> for RefsetsError
impl From<FromUtf8Error> for RefsetsError
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 RefsetsError
impl !UnwindSafe for RefsetsError
impl Freeze for RefsetsError
impl Send for RefsetsError
impl Sync for RefsetsError
impl Unpin for RefsetsError
impl UnsafeUnpin for RefsetsError
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