Enum libunftp::auth::AuthenticationError [−][src]
pub enum AuthenticationError {
BadPassword,
BadUser,
BadCert,
IpDisallowed,
CnDisallowed,
ImplPropagated(String, Option<Box<dyn Error + Send + Sync + 'static>>),
}
Expand description
The error type returned by Authenticator.authenticate
Variants
A bad password was provided
A bad username was provided
A bad client certificate was presented.
The source IP address was not allowed
The certificate CN is not allowed for this user
Another issue occurred during the authentication process.
Implementations
Creates a new domain specific error
pub fn with_source<E>(s: impl Into<String>, source: E) -> AuthenticationError where
E: Error + Send + Sync + 'static,
pub fn with_source<E>(s: impl Into<String>, source: E) -> AuthenticationError where
E: Error + Send + Sync + 'static,
Creates a new domain specific error with the given source error.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AuthenticationError
impl Send for AuthenticationError
impl Sync for AuthenticationError
impl Unpin for AuthenticationError
impl !UnwindSafe for AuthenticationError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more