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§
Source§impl ProtocolError
impl ProtocolError
Sourcepub fn into_custom<T>(self) -> ProtocolError<T>
pub fn into_custom<T>(self) -> ProtocolError<T>
Convert ProtocolError<Infallible> into ProtocolError<T>
Trait Implementations§
Source§impl<T> Clone for ProtocolError<T>where
T: Clone,
impl<T> Clone for ProtocolError<T>where
T: Clone,
Source§fn clone(&self) -> ProtocolError<T>
fn clone(&self) -> ProtocolError<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T> Copy for ProtocolError<T>where
T: Copy,
Source§impl<T> Debug for ProtocolError<T>where
T: Debug,
impl<T> Debug for ProtocolError<T>where
T: Debug,
Source§impl<T> Display for ProtocolError<T>where
T: Display,
impl<T> Display for ProtocolError<T>where
T: Display,
impl<T> Eq for ProtocolError<T>where
T: Eq,
Source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
Source§fn from(voprf_error: Error) -> ProtocolError
fn from(voprf_error: Error) -> ProtocolError
Converts to this type from the input type.
Source§impl<T> From<Infallible> for ProtocolError<T>
impl<T> From<Infallible> for ProtocolError<T>
Source§fn from(_: Infallible) -> ProtocolError<T>
fn from(_: Infallible) -> ProtocolError<T>
Converts to this type from the input type.
Source§impl<T> From<InternalError<T>> for ProtocolError<T>
impl<T> From<InternalError<T>> for ProtocolError<T>
Source§fn from(e: InternalError<T>) -> ProtocolError<T>
fn from(e: InternalError<T>) -> ProtocolError<T>
Converts to this type from the input type.
Source§impl From<InternalError> for ProtocolError
impl From<InternalError> for ProtocolError
Source§fn from(voprf_error: InternalError) -> ProtocolError
fn from(voprf_error: InternalError) -> ProtocolError
Converts to this type from the input type.
Source§impl From<ProtocolError> for Error
impl From<ProtocolError> for Error
Source§fn from(e: ProtocolError) -> Self
fn from(e: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl<T> Hash for ProtocolError<T>where
T: Hash,
impl<T> Hash for ProtocolError<T>where
T: Hash,
Source§impl<T> Ord for ProtocolError<T>where
T: Ord,
impl<T> Ord for ProtocolError<T>where
T: Ord,
Source§fn cmp(&self, other: &ProtocolError<T>) -> Ordering
fn cmp(&self, other: &ProtocolError<T>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialEq for ProtocolError<T>where
T: PartialEq,
impl<T> PartialEq for ProtocolError<T>where
T: PartialEq,
Source§impl<T> PartialOrd for ProtocolError<T>where
T: PartialOrd,
impl<T> PartialOrd for ProtocolError<T>where
T: PartialOrd,
impl<T> StructuralPartialEq for ProtocolError<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for ProtocolError<T>where
T: Freeze,
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> UnsafeUnpin for ProtocolError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ProtocolError<T>where
T: UnwindSafe,
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