pub enum BfvError {
IncompatibleParams(String),
ThresholdNotMet {
have: usize,
need: u32,
},
ResearchOnly(String),
}Expand description
Errors during BFV operations.
Variants§
IncompatibleParams(String)
Parameters incompatible.
ThresholdNotMet
Threshold not met for decryption.
ResearchOnly(String)
Operation requires academic collaborator.
Trait Implementations§
Source§impl Error for BfvError
impl Error for BfvError
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 BfvError
impl RefUnwindSafe for BfvError
impl Send for BfvError
impl Sync for BfvError
impl Unpin for BfvError
impl UnsafeUnpin for BfvError
impl UnwindSafe for BfvError
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