Enum custodian_password::error::ProtocolError [−]
pub enum ProtocolError<T = Infallible> {
LibraryError(InternalError<T>),
InvalidLoginError,
SerializationError,
ReflectedValueError,
IdentityGroupElementError,
}
Expand description
Represents an error in protocol handling
Variants
LibraryError(InternalError<T>)
Tuple Fields
0: 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
impl ProtocolError<Infallible>
impl ProtocolError<Infallible>
pub fn into_custom<T>(self) -> ProtocolError<T>
pub fn into_custom<T>(self) -> ProtocolError<T>
Convert ProtocolError<Infallible>
into `ProtocolError
Trait Implementations
impl<T> Clone for ProtocolError<T> where
T: Clone,
impl<T> Clone for ProtocolError<T> where
T: Clone,
pub fn clone(&self) -> ProtocolError<T>
pub fn clone(&self) -> ProtocolError<T>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<T> Debug for ProtocolError<T> where
T: Debug,
impl<T> Debug for ProtocolError<T> where
T: Debug,
impl<T> Display for ProtocolError<T>
impl<T> Display for ProtocolError<T>
impl<T> Error for ProtocolError<T> where
T: Error,
impl<T> Error for ProtocolError<T> where
T: Error,
impl<T> From<Infallible> for ProtocolError<T>
impl<T> From<Infallible> for ProtocolError<T>
pub fn from(Infallible) -> ProtocolError<T>
pub fn from(Infallible) -> ProtocolError<T>
Performs the conversion.
impl<T> From<InternalError<T>> for ProtocolError<T>
impl<T> From<InternalError<T>> for ProtocolError<T>
pub fn from(e: InternalError<T>) -> ProtocolError<T>
pub fn from(e: InternalError<T>) -> ProtocolError<T>
Performs the conversion.
impl From<InternalError> for ProtocolError<Infallible>
impl From<InternalError> for ProtocolError<Infallible>
pub fn from(voprf_error: InternalError) -> ProtocolError<Infallible>
pub fn from(voprf_error: InternalError) -> ProtocolError<Infallible>
Performs the conversion.
Performs the conversion.
impl<T> Hash for ProtocolError<T> where
T: Hash,
impl<T> Hash for ProtocolError<T> where
T: Hash,
impl<T> PartialEq<ProtocolError<T>> for ProtocolError<T> where
T: PartialEq<T>,
impl<T> PartialEq<ProtocolError<T>> for ProtocolError<T> where
T: PartialEq<T>,
pub fn eq(&self, other: &ProtocolError<T>) -> bool
pub fn eq(&self, other: &ProtocolError<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ProtocolError<T>) -> bool
pub fn ne(&self, other: &ProtocolError<T>) -> bool
This method tests for !=
.
impl<T> Eq for ProtocolError<T> where
T: Eq,
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
Mutably borrows from an owned value. Read more