pub enum DriveError {
CarReader(Error),
BadBlock(DecodeError<Infallible>),
MissingCommit,
MissingBlock(Cid),
WalkError(WalkError),
MissingRoot,
StorageError(DiskError),
BincodeEncodeError(EncodeError),
ChannelSendError,
JoinError(JoinError),
}Expand description
Errors that can happen while consuming and emitting blocks and records
Variants§
CarReader(Error)
BadBlock(DecodeError<Infallible>)
MissingCommit
MissingBlock(Cid)
WalkError(WalkError)
MissingRoot
StorageError(DiskError)
BincodeEncodeError(EncodeError)
ChannelSendError
JoinError(JoinError)
Trait Implementations§
Source§impl Debug for DriveError
impl Debug for DriveError
Source§impl Display for DriveError
impl Display for DriveError
Source§impl Error for DriveError
impl Error for DriveError
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<DecodeError<Infallible>> for DriveError
impl From<DecodeError<Infallible>> for DriveError
Source§fn from(source: DecodeError<Infallible>) -> Self
fn from(source: DecodeError<Infallible>) -> Self
Converts to this type from the input type.
Source§impl From<DiskError> for DriveError
impl From<DiskError> for DriveError
Source§impl From<EncodeError> for DriveError
impl From<EncodeError> for DriveError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DriveError
impl From<Error> for DriveError
Auto Trait Implementations§
impl Freeze for DriveError
impl !RefUnwindSafe for DriveError
impl Send for DriveError
impl Sync for DriveError
impl Unpin for DriveError
impl !UnwindSafe for DriveError
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