pub enum DecdsError {
Show 19 variants
EmptyDataForBlob,
InvalidStartBound,
InvalidEndBound(usize),
BlobHeaderSerializationFailed(String),
BlobHeaderDeserializationFailed(String),
ProofCarryingChunkSerializationFailed(String),
ProofCarryingChunkDeserializationFailed(String),
ChunksetReadyToRepair(usize),
ChunksetNotYetReadyToRepair(usize),
ChunksetAlreadyRepaired(usize),
ChunksetRepairingFailed(usize, String),
InvalidErasureCodedShareId(usize),
InvalidChunksetId(usize, usize),
InvalidChunksetSize(usize),
InvalidChunkMetadata(usize),
InvalidProofInChunk(usize),
ChunkDecodingFailed(usize, String),
NoLeafNodesToBuildMerkleTreeOn,
InvalidLeafNodeIndex(usize, usize),
}Expand description
Errors encountered by decds during blob building and repairing.
Variants§
EmptyDataForBlob
Returned when trying to create a blob with empty data.
InvalidStartBound
Returned when a byte range operation has an invalid start bound.
InvalidEndBound(usize)
Returned when a byte range operation has an invalid end bound. Contains the invalid end value.
BlobHeaderSerializationFailed(String)
Returned when BlobHeader serialization fails. Contains the error message from the underlying serialization library.
BlobHeaderDeserializationFailed(String)
Returned when BlobHeader deserialization fails. Contains the error message from the underlying deserialization library.
ProofCarryingChunkSerializationFailed(String)
Returned when ProofCarryingChunk serialization fails. Contains the error message from the underlying serialization library.
ProofCarryingChunkDeserializationFailed(String)
Returned when ProofCarryingChunk deserialization fails. Contains the error message from the underlying deserialization library.
ChunksetReadyToRepair(usize)
Returned when attempting to add a chunk to a RepairingChunkSet that is already ready for repair. Contains the chunkset ID.
ChunksetNotYetReadyToRepair(usize)
Returned when attempting to repair a RepairingChunkSet that is not yet ready. Contains the chunkset ID.
ChunksetAlreadyRepaired(usize)
Returned when attempting to add a chunk to a RepairingChunkSet that has already been repaired. Contains the chunkset ID.
ChunksetRepairingFailed(usize, String)
Returned when RepairingChunkSet fails to repair its data. Contains the chunkset ID and an error message.
Returned when an invalid erasure-coded share ID is provided. Contains the invalid share ID.
InvalidChunksetId(usize, usize)
Returned when an invalid chunkset ID is provided. Contains the invalid chunkset ID and the total number of chunksets.
InvalidChunksetSize(usize)
Returned when creating a ChunkSet with data of an invalid size. Contains the provided size.
InvalidChunkMetadata(usize)
Returned when a chunk contains metadata (e.g., chunkset ID) that does not match the expected context. Contains the chunkset ID.
InvalidProofInChunk(usize)
Returned when a ProofCarryingChunk fails its Merkle proof validation. Contains the chunkset ID.
ChunkDecodingFailed(usize, String)
Returned when decoding a chunk fails during the repair process. Contains the chunkset ID and an error message.
NoLeafNodesToBuildMerkleTreeOn
Returned when attempting to build a Merkle tree with no leaf nodes.
InvalidLeafNodeIndex(usize, usize)
Returned when a Merkle tree operation specifies an invalid leaf node index. Contains the invalid index and the total number of leaves.
Trait Implementations§
Source§impl Debug for DecdsError
impl Debug for DecdsError
Source§impl Display for DecdsError
impl Display for DecdsError
Source§impl Error for DecdsError
impl Error for DecdsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for DecdsError
impl PartialEq for DecdsError
impl StructuralPartialEq for DecdsError
Auto Trait Implementations§
impl Freeze for DecdsError
impl RefUnwindSafe for DecdsError
impl Send for DecdsError
impl Sync for DecdsError
impl Unpin for DecdsError
impl UnwindSafe for DecdsError
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
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>
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>
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