pub enum ReadingError {
FailedToReadChunk {
chunk_location: u64,
error: Error,
},
MissingPosProof {
s_bucket: SBucket,
},
FailedToErasureDecodeRecord {
piece_offset: PieceOffset,
error: ErasureCodingError,
},
WrongRecordSizeAfterDecoding {
expected: usize,
actual: usize,
},
FailedToDecodeSectorContentsMap(SectorContentsMapFromBytesError),
Io(Error),
ChecksumMismatch,
}Expand description
Errors that happen during reading
Variants§
FailedToReadChunk
Failed to read chunk.
This is an implementation bug, most likely due to mismatch between sector contents map and other farming parameters.
MissingPosProof
Missing proof of space proof.
This is either hardware issue or if happens for everyone all the time an implementation bug.
Fields
§
s_bucket: SBucketS-bucket
FailedToErasureDecodeRecord
Failed to erasure-decode record
WrongRecordSizeAfterDecoding
Wrong record size after decoding
FailedToDecodeSectorContentsMap(SectorContentsMapFromBytesError)
Failed to decode sector contents map
Io(Error)
I/O error occurred
ChecksumMismatch
Checksum mismatch
Implementations§
Trait Implementations§
Source§impl Debug for ReadingError
impl Debug for ReadingError
Source§impl Display for ReadingError
impl Display for ReadingError
Source§impl Error for ReadingError
impl Error for ReadingError
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 ReadingError
impl From<Error> for ReadingError
Source§impl From<ReadingError> for ProvingError
impl From<ReadingError> for ProvingError
Source§fn from(source: ReadingError) -> Self
fn from(source: ReadingError) -> Self
Converts to this type from the input type.
Source§impl From<SectorContentsMapFromBytesError> for ReadingError
impl From<SectorContentsMapFromBytesError> for ReadingError
Source§fn from(source: SectorContentsMapFromBytesError) -> Self
fn from(source: SectorContentsMapFromBytesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadingError
impl !RefUnwindSafe for ReadingError
impl Send for ReadingError
impl Sync for ReadingError
impl Unpin for ReadingError
impl !UnwindSafe for ReadingError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more