pub enum MlKemError {
ParamMismatch,
ThresholdNotMet {
have: usize,
need: u32,
},
ResearchOnly(String),
}Expand description
Errors during threshold ML-KEM operations.
Variants§
ParamMismatch
Parameter mismatch.
ThresholdNotMet
Threshold not met.
ResearchOnly(String)
Research-only operation.
Trait Implementations§
Source§impl Debug for MlKemError
impl Debug for MlKemError
Source§impl Display for MlKemError
impl Display for MlKemError
Source§impl Error for MlKemError
impl Error for MlKemError
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()
Auto Trait Implementations§
impl Freeze for MlKemError
impl RefUnwindSafe for MlKemError
impl Send for MlKemError
impl Sync for MlKemError
impl Unpin for MlKemError
impl UnsafeUnpin for MlKemError
impl UnwindSafe for MlKemError
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