Enum boringssl::Error [] [src]

pub enum Error {
    None,
    Ssl,
    WantRead,
    WantWrite,
    WantX509Lookup,
    Syscall,
    ZeroReturn,
    WantConnect,
    WantAccept,
    WantChannelIdLookup,
    PendingSession,
    PendingCertificate,
    WantPrivateKeyOperation,
    AllocationFailed,
}

Variants

None

The operation succeeded.

Ssl

The operation failed within the library. The caller may inspect the error queue for more information.

WantRead

The operation failed attempting to read from the transport. The caller may retry the operation when the transport is ready for reading.

WantWrite

The operation failed attempting to write to the transport. The caller may retry the operation when the transport is ready for writing.

WantX509Lookup

The operation failed in calling the cert_cb or client_cert_cb. The caller may retry the operation when the callback is ready to return a certificate or one has been configured externally.

Syscall

The operation failed externally to the library. The caller should consult the system-specific error mechanism. It may also be signaled if the transport returned EOF, in which case the operation's return value will be zero.

ZeroReturn

The operation failed because the connection was cleanly shut down with a close_notify alert.

WantConnect

The operation failed attempting to connect the transport. The caller may retry the operation when the transport is ready.

WantAccept

The operation failed attempting to accept a connection from the transport. The caller may retry the operation when the transport is ready.

WantChannelIdLookup

The operation failed looking up the Channel ID key. The caller may retry the operation when channel_id_cb is ready to return a key or one has been configured with SSL_set1_tls_channel_id.

PendingSession

The operation failed because the session lookup callback indicated the session was unavailable. The caller may retry the operation when lookup has completed.

PendingCertificate

The operation failed because the early callback indicated certificate lookup was incomplete. The caller may retry the operation when lookup has completed. Note: when the operation is retried, the early callback will not be called a second time.

WantPrivateKeyOperation

The operation failed because a private key operation was unfinished. The caller may retry the operation when the private key operation is complete.

AllocationFailed

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.