pub enum ClayError {
InvalidParameters(String),
InsufficientHelpers {
needed: usize,
provided: usize,
},
InvalidChunkSize {
expected: usize,
actual: usize,
},
InsufficientHelperData {
helper: usize,
expected: usize,
actual: usize,
},
InconsistentChunkSizes {
first_size: usize,
mismatched_idx: usize,
mismatched_size: usize,
},
TooManyErasures {
max: usize,
actual: usize,
},
ReconstructionFailed(String),
MissingYSectionHelper {
lost_node: usize,
missing_helper: usize,
},
Overflow(String),
}Expand description
Error type for Clay code operations
Variants§
InvalidParameters(String)
Invalid code parameters (k, m, d)
InsufficientHelpers
Not enough helper nodes for repair
InvalidChunkSize
Chunk size doesn’t match expected sub-chunk alignment
InsufficientHelperData
Helper provided insufficient data
InconsistentChunkSizes
Chunks have inconsistent sizes
TooManyErasures
Too many erasures to recover (max is m)
ReconstructionFailed(String)
RS reconstruction failed
MissingYSectionHelper
Missing required y-section helper for repair
Overflow(String)
Arithmetic overflow in parameter calculation
Trait Implementations§
Source§impl Error for ClayError
impl Error for ClayError
1.30.0 · 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()
impl Eq for ClayError
impl StructuralPartialEq for ClayError
Auto Trait Implementations§
impl Freeze for ClayError
impl RefUnwindSafe for ClayError
impl Send for ClayError
impl Sync for ClayError
impl Unpin for ClayError
impl UnwindSafe for ClayError
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