pub enum Error {
    ClientError {
        source: Error,
    },
    ClientInitFailed {
        message: Message,
    },
    InvalidAddress,
    InvalidClientVersion {
        version: u32,
    },
    InvalidMetadata {
        metadata: String,
    },
    IoError {
        source: Error,
    },
    ProtocolError {
        source: Error,
    },
}
Expand description

Error type for mobc-boltrs

Examples


let e = Error::InvalidClientVersion { version: 143 };

Variants

ClientError

Fields

source: Error

Wraps and returns an error generated by the Bolt client

ClientInitFailed

Fields

message: Message

Returned when the client fails to initialize a session with the server

InvalidAddress

Returned when an address or hostname cannot be resolved

InvalidClientVersion

Fields

version: u32

Returned when the client requests an invalid version of the database

InvalidMetadata

Fields

metadata: String

Returned when the client metadata is incorrect, such as bad authentication credentials

IoError

Fields

source: Error

Wraps and returns an error from the underlying I/O libraries

ProtocolError

Fields

source: Error

Wraps and returns a Bolt protocol error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

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

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

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.