pub enum X25519Error {
InvalidInput,
ValidationError(String),
}Expand description
Error types for X25519 operations
Variants§
InvalidInput
Invalid input: scalar or u-coordinate is all zeros
ValidationError(String)
Input validation failed
Trait Implementations§
Source§impl Clone for X25519Error
impl Clone for X25519Error
Source§fn clone(&self) -> X25519Error
fn clone(&self) -> X25519Error
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 X25519Error
impl Debug for X25519Error
Source§impl Display for X25519Error
impl Display for X25519Error
Source§impl Error for X25519Error
impl Error for X25519Error
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()
Source§impl PartialEq for X25519Error
impl PartialEq for X25519Error
impl Eq for X25519Error
impl StructuralPartialEq for X25519Error
Auto Trait Implementations§
impl Freeze for X25519Error
impl RefUnwindSafe for X25519Error
impl Send for X25519Error
impl Sync for X25519Error
impl Unpin for X25519Error
impl UnwindSafe for X25519Error
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