Enum webwire::service::consumer::ConsumerError[][src]

pub enum ConsumerError {
    ServiceNotFound,
    MethodNotFound,
    SerializerError(Error),
    DeserializerError(Error),
    ProviderError,
    InvalidData(Bytes),
    Broadcast,
    Disconnected,
    Transport(Box<dyn Error + Sync + Send>),
}
Expand description

Error returned by the Consumer::call method

Variants

ServiceNotFound

The requested service was not found.

MethodNotFound

The requested method was not found.

SerializerError(Error)

An error occured while serializing the request.

Tuple Fields of SerializerError

0: Error
DeserializerError(Error)

An error occured while deserializing the response.

Tuple Fields of DeserializerError

0: Error
ProviderError

The provider reported an internal error.

InvalidData(Bytes)

The data part of the message could not be understood.

Tuple Fields of InvalidData

0: Bytes
Broadcast

The request was sent to multiple recipients therefore fetching a result is not supported.

Disconnected

The remote side disconnected while waiting for a response

Transport(Box<dyn Error + Sync + Send>)

Transport specific error

Tuple Fields of Transport

0: Box<dyn Error + Sync + Send>

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

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.

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