[][src]Enum libunftp::server::error::FTPErrorKind

pub enum FTPErrorKind {
    IOError,
    ParseError,
    InternalServerError,
    AuthenticationError,
    InternalMsgError,
    UTF8Error,
    UnknownCommand {
        command: String,
    },
    InvalidCommand,
    ControlChannelTimerError,
}

A list specifying categories of FTP errors. It is meant to be used with the FTPError type.

Variants

IOError

We encountered a system IO error.

ParseError

Something went wrong parsing the client's command.

InternalServerError

Internal Server Error. This is probably a bug, i.e. when we're unable to lock a resource we should be able to lock.

AuthenticationError

Authentication backend returned an error.

InternalMsgError

We received something on the data message channel that we don't understand. This should be impossible.

UTF8Error

We encountered a non-UTF8 character in the command.

UnknownCommand

The client issued a command we don't know about.

Fields of UnknownCommand

command: String

The command that we don't know about

InvalidCommand

The client issued a command that we know about, but in an invalid way (e.g. USER without an username).

ControlChannelTimerError

The timer on the Control Channel encountered an error.

Trait Implementations

impl Debug for FTPErrorKind[src]

impl Display for FTPErrorKind[src]

impl Eq for FTPErrorKind[src]

impl Fail for FTPErrorKind[src]

impl From<FTPErrorKind> for FTPError[src]

impl PartialEq<FTPErrorKind> for FTPErrorKind[src]

impl StructuralEq for FTPErrorKind[src]

impl StructuralPartialEq for FTPErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[src]

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

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

impl<T> Erased for T

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<T> From<T> 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.