Enum async_psec::PsecError[][src]

pub enum PsecError {
    BrokenPipe,
    ConnectionReset,
    TransmissionCorrupted,
    BufferTooLarge,
    UnexpectedEof,
    IoError {
        error_kind: ErrorKind,
    },
    BadPadding,
}
Expand description

Errors that can be returned by PSEC operations.

Variants

BrokenPipe

The operation failed because a pipe was closed.

ConnectionReset

The connection was reset by the remote peer.

TransmissionCorrupted

Authentication error. It often means that the AES GCM tag was invalid during a decryption operation.

BufferTooLarge

The received buffer was too large and was discarded to prevent DOS attacks.

UnexpectedEof

Failed to read the desired amout of bytes.

IoError

An unknown error occurred while reading or writing to the underlying TcpStream.

Show fields

Fields of IoError

error_kind: ErrorKind

The ErrorKind of the I/O Error.

BadPadding

The plain text was not properly padded.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Should always be Self

Converts the given value to a String. 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.