Enum leopard_codec::LeopardError
source · pub enum LeopardError {
MaxShardNumberExceeded(usize),
MaxParityShardNumberExceeded(usize, usize),
UnsupportedShardsAmounts(usize, usize),
EmptyShards,
UnequalShardsLengths,
InvalidShardSize(usize),
TooFewShards(usize, usize),
}
Expand description
Possible errors that can happen when interacting with Leopard.
Variants§
MaxShardNumberExceeded(usize)
Maximum number of shards exceeded.
MaxParityShardNumberExceeded(usize, usize)
Maximum number of parity shards exceeded.
UnsupportedShardsAmounts(usize, usize)
This amount of (data, parity) shards is not supported by Leopard algorithm and would result in buffer overflow on skew lookup table during encoding. Please try using different amounts of shards.
EmptyShards
Some shards contain no data.
UnequalShardsLengths
Some shards are of different lengths.
InvalidShardSize(usize)
Shard size is invalid.
TooFewShards(usize, usize)
To few shards to reconstruct data.
Trait Implementations§
source§impl Debug for LeopardError
impl Debug for LeopardError
source§impl Display for LeopardError
impl Display for LeopardError
source§impl Error for LeopardError
impl Error for LeopardError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for LeopardError
impl RefUnwindSafe for LeopardError
impl Send for LeopardError
impl Sync for LeopardError
impl Unpin for LeopardError
impl UnwindSafe for LeopardError
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