pub enum DocumentError {
Blob(Error),
}Expand description
The bytes a bless step wrote are not a reduction this crate can read.
This is the whole of what Document::from_blob and Document::to_blob
can say, and therefore the whole of what a shipped binary can fail with —
the one door it has onto a document is the blob. The type has the same
shape in every build: a caller who matches it exhaustively writes the same
match whether or not the document feature is on, and reading its rustdoc
under either feature set tells them the same thing. Reducing a document is
a different job with a different failure list, and LoadError — which the
document feature brings with the reader — is where that list lives.
Variants§
Trait Implementations§
Source§impl Debug for DocumentError
impl Debug for DocumentError
Source§impl Display for DocumentError
impl Display for DocumentError
Source§impl Error for DocumentError
impl Error for DocumentError
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<DocumentError> for Error
impl From<DocumentError> for Error
Source§fn from(source: DocumentError) -> Self
fn from(source: DocumentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocumentError
impl RefUnwindSafe for DocumentError
impl Send for DocumentError
impl Sync for DocumentError
impl Unpin for DocumentError
impl UnsafeUnpin for DocumentError
impl UnwindSafe for DocumentError
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