pub enum DocError {
Parse(String),
NotAnObject,
WrongKind {
expected: String,
found: String,
},
TooNew {
found: u32,
supported: u32,
},
MissingMigration {
from: u32,
},
Migration {
from: u32,
error: String,
},
Shape(String),
}Expand description
Why a document could not be loaded.
Variants§
Parse(String)
Not JSON.
NotAnObject
WrongKind
Another kind of document.
TooNew
Written by a newer version.
MissingMigration
No way from this version to the next.
Migration
Shape(String)
Migrated, but not the expected shape.
Trait Implementations§
Source§impl Error for DocError
impl Error for DocError
1.30.0 · 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()
impl Eq for DocError
impl StructuralPartialEq for DocError
Auto Trait Implementations§
impl Freeze for DocError
impl RefUnwindSafe for DocError
impl Send for DocError
impl Sync for DocError
impl Unpin for DocError
impl UnsafeUnpin for DocError
impl UnwindSafe for DocError
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