#[non_exhaustive]pub enum RecoverError {
TooManyMissing {
missing: usize,
p: usize,
},
Matrix(MatrixError),
Code(CodeError),
}Expand description
Errors from the recovery path.
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.
TooManyMissing
More shards are missing than the code can repair.
Fields
Matrix(MatrixError)
The surviving-rows submatrix could not be inverted.
Code(CodeError)
A shard buffer failed validation.
Trait Implementations§
Source§impl Clone for RecoverError
impl Clone for RecoverError
Source§fn clone(&self) -> RecoverError
fn clone(&self) -> RecoverError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RecoverError
Source§impl Debug for RecoverError
impl Debug for RecoverError
Source§impl Display for RecoverError
impl Display for RecoverError
impl Eq for RecoverError
Source§impl Error for RecoverError
impl Error for RecoverError
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<CodeError> for RecoverError
impl From<CodeError> for RecoverError
Source§impl From<MatrixError> for RecoverError
impl From<MatrixError> for RecoverError
Source§fn from(e: MatrixError) -> Self
fn from(e: MatrixError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecoverError
impl PartialEq for RecoverError
impl StructuralPartialEq for RecoverError
Auto Trait Implementations§
impl Freeze for RecoverError
impl RefUnwindSafe for RecoverError
impl Send for RecoverError
impl Sync for RecoverError
impl Unpin for RecoverError
impl UnsafeUnpin for RecoverError
impl UnwindSafe for RecoverError
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