#[non_exhaustive]pub enum GroupError {
MalformedElement,
InvalidIdentityElement,
InvalidNonPrimeOrderElement,
}
Expand description
An error related to a Group (usually an elliptic curve or constructed from one) or one of its Elements.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MalformedElement
The encoding of a group element was malformed.
InvalidIdentityElement
This element MUST NOT be the identity.
InvalidNonPrimeOrderElement
This element MUST have (large) prime order.
Trait Implementations§
Source§impl Clone for GroupError
impl Clone for GroupError
Source§fn clone(&self) -> GroupError
fn clone(&self) -> GroupError
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 GroupError
impl Debug for GroupError
Source§impl Display for GroupError
impl Display for GroupError
Source§impl Error for GroupError
impl Error for GroupError
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<C: Ciphersuite> From<GroupError> for Error<C>
impl<C: Ciphersuite> From<GroupError> for Error<C>
Source§fn from(source: GroupError) -> Self
fn from(source: GroupError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GroupError
impl PartialEq for GroupError
impl Copy for GroupError
impl Eq for GroupError
impl StructuralPartialEq for GroupError
Auto Trait Implementations§
impl Freeze for GroupError
impl RefUnwindSafe for GroupError
impl Send for GroupError
impl Sync for GroupError
impl Unpin for GroupError
impl UnwindSafe for GroupError
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