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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MsgPackResponse for Response

Available on crate features reqwest and cresult only.
Source§

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

Implementors§