Enum krakenrs::Error[][src]

pub enum Error {
    Url(UrlParseError),
    Reqwest(Error),
    BadStatus(Response),
    Json(ErrorString),
    KrakenErrors(Vec<String>),
    MissingResultJson,
    MissingCredentials,
    TimeError,
    SerializingQs(Error),
    SigningB64(DecodeError),
    InvalidHeader(InvalidHeaderValue),
}
Expand description

An error that can be generated from the low-level kraken client

Variants

Url(UrlParseError)

Tuple Fields

Failed forming URI: {0}

Reqwest(Error)

Tuple Fields

0: Error

Reqwest error: {0}

BadStatus(Response)

Tuple Fields

kraken returned bad status: {0:?}

Json(ErrorString)

Tuple Fields

0: Error
1: String

json deserialization failed: {0}, body was: {1}

KrakenErrors(Vec<String>)

Tuple Fields

0: Vec<String>

Kraken errors present: {0:?}

MissingResultJson

Missing result json

MissingCredentials

Missing credentials required for private APIs

TimeError

Time error (preventing nonce computation)

SerializingQs(Error)

Tuple Fields

0: Error

Error serializing query string: {0}

SigningB64(DecodeError)

Tuple Fields

base64 error during signing: {0}

InvalidHeader(InvalidHeaderValue)

Tuple Fields

Invalid header value: {0}

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more