Skip to main content

MsgPackRequest

Trait MsgPackRequest 

Source
pub trait MsgPackRequest {
    // Required method
    fn msgpack<T>(self, msgpack: &T) -> Result<Self, ClientError>
       where T: Serialize + ?Sized,
             Self: Sized;
}
Expand description

MessagePack writer to reqwest::RequestBuilder.

Required Methods§

Source

fn msgpack<T>(self, msgpack: &T) -> Result<Self, ClientError>
where T: Serialize + ?Sized, Self: Sized,

Writes T as MsgPack binary data into RequestBuilder.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl MsgPackRequest for RequestBuilder

Available on crate features cresult and reqwest only.
Source§

fn msgpack<T>(self, msgpack: &T) -> Result<RequestBuilder, ClientError>
where T: Serialize + ?Sized,

Implementors§