pub enum AuthError {
Show 14 variants
SessionNotFound(String),
NotAuthenticated(String),
AuthFailed(String),
InvalidMessage(String),
InvalidSignature(String),
Timeout(String),
TransportNotConnected(String),
InvalidNonce(String),
MissingCertificate(String),
CertificateValidation(String),
TransportError(String),
SerializationError(String),
Wallet(WalletError),
Primitives(PrimitivesError),
}Expand description
Unified error type for all authentication operations.
Variants§
SessionNotFound(String)
Session not found for the given identity key.
NotAuthenticated(String)
Peer is not authenticated.
AuthFailed(String)
Authentication handshake failed.
InvalidMessage(String)
Received an invalid or malformed message.
InvalidSignature(String)
Signature verification failed.
Timeout(String)
Operation timed out.
TransportNotConnected(String)
Transport is not connected.
InvalidNonce(String)
Nonce verification failed.
MissingCertificate(String)
Required certificate is missing.
CertificateValidation(String)
Certificate validation failed.
TransportError(String)
Transport-level error.
SerializationError(String)
Serialization or deserialization error.
Wallet(WalletError)
Error from the wallet layer.
Primitives(PrimitivesError)
Error from the primitives layer.
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
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 From<AuthError> for ServicesError
impl From<AuthError> for ServicesError
Source§impl From<PrimitivesError> for AuthError
impl From<PrimitivesError> for AuthError
Source§fn from(source: PrimitivesError) -> Self
fn from(source: PrimitivesError) -> Self
Converts to this type from the input type.
Source§impl From<WalletError> for AuthError
impl From<WalletError> for AuthError
Source§fn from(source: WalletError) -> Self
fn from(source: WalletError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl UnwindSafe for AuthError
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