pub enum LaiCryptoError {
SqrtFailure {
input: u128,
modulus: u128,
attempts: u32,
advice: String,
},
TransformFailure {
point: (u128, u128),
s: u128,
steps: Vec<TraceStep>,
advice: String,
},
KeygenFailed {
attempts: u32,
modulus: u128,
base_point: (u128, u128),
advice: String,
},
InvalidParameter {
param: String,
value: String,
reason: String,
valid_range: String,
},
Timeout {
operation: String,
duration: Duration,
max_duration: Duration,
},
ValidationError {
operation: String,
expected: String,
actual: String,
},
GraphError {
context: String,
cause: String,
},
}Expand description
Comprehensive error types with solution guidance
Variants§
SqrtFailure
Modular square root failure (Tonelli-Shanks)
TransformFailure
T-transform failure with context
KeygenFailed
Key generation failure
InvalidParameter
Parameter validation failure
Timeout
Operation timeout
ValidationError
Cryptographic validation failure
GraphError
Graph rendering error
Trait Implementations§
Source§impl Clone for LaiCryptoError
impl Clone for LaiCryptoError
Source§fn clone(&self) -> LaiCryptoError
fn clone(&self) -> LaiCryptoError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaiCryptoError
impl Debug for LaiCryptoError
Source§impl Display for LaiCryptoError
impl Display for LaiCryptoError
Source§impl PartialEq for LaiCryptoError
impl PartialEq for LaiCryptoError
impl StructuralPartialEq for LaiCryptoError
Auto Trait Implementations§
impl Freeze for LaiCryptoError
impl RefUnwindSafe for LaiCryptoError
impl Send for LaiCryptoError
impl Sync for LaiCryptoError
impl Unpin for LaiCryptoError
impl UnwindSafe for LaiCryptoError
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