Skip to main content

MsgPackResponse

Trait MsgPackResponse 

Source
pub trait MsgPackResponse {
    // Required method
    async fn msgpack<T>(self) -> Result<T, ClientError>
       where T: DeserializeOwned;
}
Expand description

Trait to parse MessagePack responses from reqwest library.

Required Methods§

Source

async fn msgpack<T>(self) -> Result<T, ClientError>

Parses MessagePack from body.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl MsgPackResponse for Response

Available on crate features cresult and reqwest only.
Source§

async fn msgpack<T>(self) -> Result<T, ClientError>

Implementors§