pub enum SftpErrorKind {
    NoSuchFile,
    PermDenied,
    Failure,
    BadMessage,
    OpUnsupported,
}

Variants

NoSuchFile

is returned when a reference is made to a file which should exist but doesn’t.

PermDenied

Returned when the authenticated user does not have sufficient permissions to perform the operation.

Failure

A generic catch-all error message.

It should be returned if an error occurs for which there is no more specific error code defined.

BadMessage

May be returned if a badly formatted packet or protocol incompatibility is detected.

If the handle is opened read only, but write flag is required, then BadMessage might be returned, vice versa.

OpUnsupported

Indicates that an attempt was made to perform an operation which is not supported for the server.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.