Enum opaque_ke::errors::ProtocolError
source · [−]pub enum ProtocolError<T = Infallible> {
LibraryError(InternalError<T>),
InvalidLoginError,
SerializationError,
ReflectedValueError,
IdentityGroupElementError,
}
Expand description
Represents an error in protocol handling
Variants
LibraryError(InternalError<T>)
Internal error encountered
InvalidLoginError
Error in validating credentials
SerializationError
Error with serializing / deserializing protocol messages
ReflectedValueError
This error occurs when the client detects that the server has reflected the OPRF value (beta == alpha)
IdentityGroupElementError
Identity group element was encountered during deserialization, which is invalid
Implementations
sourceimpl ProtocolError
impl ProtocolError
sourcepub fn into_custom<T>(self) -> ProtocolError<T>
pub fn into_custom<T>(self) -> ProtocolError<T>
Convert ProtocolError<Infallible>
into `ProtocolError
Trait Implementations
sourceimpl<T: Clone> Clone for ProtocolError<T>
impl<T: Clone> Clone for ProtocolError<T>
sourcefn clone(&self) -> ProtocolError<T>
fn clone(&self) -> ProtocolError<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for ProtocolError<T>
impl<T: Debug> Debug for ProtocolError<T>
sourceimpl<T> Display for ProtocolError<T>
impl<T> Display for ProtocolError<T>
sourceimpl<T: Error> Error for ProtocolError<T>
impl<T: Error> Error for ProtocolError<T>
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for ProtocolError
impl From<Error> for ProtocolError
sourceimpl<T> From<Infallible> for ProtocolError<T>
impl<T> From<Infallible> for ProtocolError<T>
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
sourceimpl<T> From<InternalError<T>> for ProtocolError<T>
impl<T> From<InternalError<T>> for ProtocolError<T>
sourcefn from(e: InternalError<T>) -> ProtocolError<T>
fn from(e: InternalError<T>) -> ProtocolError<T>
Converts to this type from the input type.
sourceimpl From<InternalError> for ProtocolError
impl From<InternalError> for ProtocolError
sourcefn from(voprf_error: InternalError) -> Self
fn from(voprf_error: InternalError) -> Self
Converts to this type from the input type.
sourceimpl<T: Hash> Hash for ProtocolError<T>
impl<T: Hash> Hash for ProtocolError<T>
sourceimpl<T: Ord> Ord for ProtocolError<T>
impl<T: Ord> Ord for ProtocolError<T>
sourcefn cmp(&self, other: &ProtocolError<T>) -> Ordering
fn cmp(&self, other: &ProtocolError<T>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq> PartialEq<ProtocolError<T>> for ProtocolError<T>
impl<T: PartialEq> PartialEq<ProtocolError<T>> for ProtocolError<T>
sourcefn eq(&self, other: &ProtocolError<T>) -> bool
fn eq(&self, other: &ProtocolError<T>) -> bool
sourceimpl<T: PartialOrd> PartialOrd<ProtocolError<T>> for ProtocolError<T>
impl<T: PartialOrd> PartialOrd<ProtocolError<T>> for ProtocolError<T>
sourcefn partial_cmp(&self, other: &ProtocolError<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtocolError<T>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for ProtocolError<T>
impl<T: Eq> Eq for ProtocolError<T>
impl<T> StructuralEq for ProtocolError<T>
impl<T> StructuralPartialEq for ProtocolError<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ProtocolError<T>where
T: RefUnwindSafe,
impl<T> Send for ProtocolError<T>where
T: Send,
impl<T> Sync for ProtocolError<T>where
T: Sync,
impl<T> Unpin for ProtocolError<T>where
T: Unpin,
impl<T> UnwindSafe for ProtocolError<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more