pub enum ErasureCodingError {
DecoderError(Error),
WrongSourceShardByteLength {
expected: usize,
actual: usize,
},
WrongParityShardByteLength {
expected: usize,
actual: usize,
},
}
Expand description
Error that occurs when calling ErasureCoding::recover()
Variants§
DecoderError(Error)
Decoder error
WrongSourceShardByteLength
Wrong source shard byte length
WrongParityShardByteLength
Wrong parity shard byte length
Trait Implementations§
Source§impl Clone for ErasureCodingError
impl Clone for ErasureCodingError
Source§fn clone(&self) -> ErasureCodingError
fn clone(&self) -> ErasureCodingError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ErasureCodingError
impl Debug for ErasureCodingError
Source§impl Display for ErasureCodingError
impl Display for ErasureCodingError
Source§impl Error for ErasureCodingError
impl Error for ErasureCodingError
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 ErasureCodingError
impl From<Error> for ErasureCodingError
Source§impl PartialEq for ErasureCodingError
impl PartialEq for ErasureCodingError
impl StructuralPartialEq for ErasureCodingError
Auto Trait Implementations§
impl Freeze for ErasureCodingError
impl RefUnwindSafe for ErasureCodingError
impl Send for ErasureCodingError
impl Sync for ErasureCodingError
impl Unpin for ErasureCodingError
impl UnwindSafe for ErasureCodingError
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