MsgPackParser

Trait MsgPackParser 

Source
pub trait MsgPackParser {
    // Required methods
    async fn parse_msgpack<'de, T: Deserialize<'de>>(
        &'de mut self,
    ) -> MResult<T>;
    async fn parse_msgpack_with_max_size<'de, T: Deserialize<'de>>(
        &'de mut self,
        max_size: usize,
    ) -> MResult<T>;
}
Expand description

MessagePack parser from salvo::Request.

Required Methods§

Source

async fn parse_msgpack<'de, T: Deserialize<'de>>(&'de mut self) -> MResult<T>

Parses msgpack body.

Source

async fn parse_msgpack_with_max_size<'de, T: Deserialize<'de>>( &'de mut self, max_size: usize, ) -> MResult<T>

Parses msgpack body with size limit.

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 MsgPackParser for Request

Available on crate feature salvo and neither WebAssembly nor WebAssembly only.
Source§

async fn parse_msgpack<'de, T: Deserialize<'de>>(&'de mut self) -> MResult<T>

Parse MessagePack body as type T from request with default max size limit.

Source§

async fn parse_msgpack_with_max_size<'de, T: Deserialize<'de>>( &'de mut self, max_size: usize, ) -> MResult<T>

Parse MessagePack body as type T from request with max size limit.

Implementors§