Trait ApiError

Source
pub trait ApiError: StdError {
    // Required methods
    fn from_request_error(e: RequestError) -> Self;
    fn from_message_error(e: MessageError) -> Self;
}
Expand description

The error that is sent if something goes wrong while responding to a request.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§