#[non_exhaustive]pub enum ReadBlobError {
Missing(ObjectId),
Kind {
id: ObjectId,
kind: ObjectKind,
},
Read(ObjectReadError),
}Expand description
Objects::read_blob failed to produce blob bytes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing(ObjectId)
No store has the object.
Kind
The object exists but is not a blob.
Read(ObjectReadError)
Reading the object failed.
Trait Implementations§
Source§impl Debug for ReadBlobError
impl Debug for ReadBlobError
Source§impl Display for ReadBlobError
impl Display for ReadBlobError
Source§impl Error for ReadBlobError
impl Error for ReadBlobError
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<ObjectReadError> for ReadBlobError
impl From<ObjectReadError> for ReadBlobError
Source§fn from(source: ObjectReadError) -> Self
fn from(source: ObjectReadError) -> Self
Converts to this type from the input type.
Source§impl From<ReadBlobError> for Error
impl From<ReadBlobError> for Error
Source§fn from(error: ReadBlobError) -> Self
fn from(error: ReadBlobError) -> Self
Converts to this type from the input type.
Source§impl From<ReadBlobError> for TreeError
impl From<ReadBlobError> for TreeError
Source§fn from(source: ReadBlobError) -> Self
fn from(source: ReadBlobError) -> Self
Converts to this type from the input type.
Source§impl From<ReadBlobError> for TreeError
impl From<ReadBlobError> for TreeError
Source§fn from(source: ReadBlobError) -> Self
fn from(source: ReadBlobError) -> Self
Converts to this type from the input type.
Source§impl From<ReadBlobError> for LoadError
impl From<ReadBlobError> for LoadError
Source§fn from(source: ReadBlobError) -> Self
fn from(source: ReadBlobError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadBlobError
impl !UnwindSafe for ReadBlobError
impl Freeze for ReadBlobError
impl Send for ReadBlobError
impl Sync for ReadBlobError
impl Unpin for ReadBlobError
impl UnsafeUnpin for ReadBlobError
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