[][src]Enum libunftp::auth::AuthenticationError

pub enum AuthenticationError {
    BadPassword,
    BadUser,
    ImplPropagated(StringOption<Box<dyn Error + Send + Sync + 'static>>),
}

The error type returned by Authenticator.authenticate

Variants

BadPassword

A bad password was provided

BadUser

A bad username was provided

ImplPropagated(StringOption<Box<dyn Error + Send + Sync + 'static>>)

Another issue occurred during the authentication process.

Implementations

impl AuthenticationError[src]

pub fn new(s: impl Into<String>) -> AuthenticationError[src]

Creates a new domain specific error

pub fn with_source<E>(s: impl Into<String>, source: E) -> AuthenticationError where
    E: Error + Send + Sync + 'static, 
[src]

Creates a new domain specific error with the given source error.

Trait Implementations

impl Debug for AuthenticationError[src]

impl Display for AuthenticationError[src]

impl Error for AuthenticationError[src]

impl From<Error> for AuthenticationError[src]

impl From<Error> for AuthenticationError[src]

impl From<Error> for AuthenticationError[src]

impl From<PamError> for AuthenticationError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]