pub enum Error {
SharingMinThreshold,
SharingLimitLessThanThreshold,
InvalidSizeRequest,
SharingInvalidIdentifier,
SharingDuplicateIdentifier,
SharingMaxRequest,
InvalidShare,
InvalidGenerator,
InvalidSecret,
InvalidShareConversion,
NotImplemented,
}
Expand description
Errors during secret sharing
Variants§
SharingMinThreshold
Error when threshold is less than 2
SharingLimitLessThanThreshold
Error when limit is less than threshold
InvalidSizeRequest
When dealing with fixed size arrays, the caller requested more shares than there is space
SharingInvalidIdentifier
Invalid share identifier
SharingDuplicateIdentifier
Duplicate identifier when combining
SharingMaxRequest
The maximum number of shares to be made when splitting
An invalid share was supplied for verification or combine
InvalidGenerator
An invalid generator was supplied for share generation
InvalidSecret
An invalid secret was supplied for split
A share cannot be converted to a group or field element
NotImplemented
A specific function is not implemented
Trait Implementations§
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq for Error
impl PartialEq for Error
source§impl PartialOrd for Error
impl PartialOrd for Error
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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