Enum libunftp::auth::AuthenticationError
source · 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§
BadPassword
A bad password was provided
BadUser
A bad username was provided
BadCert
A bad client certificate was presented.
IpDisallowed
The source IP address was not allowed
CnDisallowed
The certificate CN is not allowed for this user
ImplPropagated(String, Option<Box<dyn Error + Send + Sync + 'static>>)
Another issue occurred during the authentication process.
Implementations§
source§impl AuthenticationError
impl AuthenticationError
sourcepub fn new(s: impl Into<String>) -> AuthenticationError
pub fn new(s: impl Into<String>) -> AuthenticationError
Creates a new domain specific error
sourcepub fn with_source<E>(s: impl Into<String>, source: E) -> AuthenticationErrorwhere
E: Error + Send + Sync + 'static,
pub fn with_source<E>(s: impl Into<String>, source: E) -> AuthenticationErrorwhere
E: Error + Send + Sync + 'static,
Creates a new domain specific error with the given source error.
Trait Implementations§
source§impl Debug for AuthenticationError
impl Debug for AuthenticationError
source§impl Display for AuthenticationError
impl Display for AuthenticationError
source§impl Error for AuthenticationError
impl Error for AuthenticationError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.