Trait cc_utils::requests::MsgPackParser

source ·
pub trait MsgPackParser {
    // Required methods
    fn parse_msgpack<'de, 'async_trait, T>(
        &'de mut self,
    ) -> Pin<Box<dyn Future<Output = MResult<T>> + Send + 'async_trait>>
       where T: 'async_trait + Deserialize<'de>,
             Self: 'async_trait,
             'de: 'async_trait;
    fn parse_msgpack_with_max_size<'de, 'async_trait, T>(
        &'de mut self,
        max_size: usize,
    ) -> Pin<Box<dyn Future<Output = MResult<T>> + Send + 'async_trait>>
       where T: 'async_trait + Deserialize<'de>,
             Self: 'async_trait,
             'de: 'async_trait;
}

Required Methods§

source

fn parse_msgpack<'de, 'async_trait, T>( &'de mut self, ) -> Pin<Box<dyn Future<Output = MResult<T>> + Send + 'async_trait>>
where T: 'async_trait + Deserialize<'de>, Self: 'async_trait, 'de: 'async_trait,

source

fn parse_msgpack_with_max_size<'de, 'async_trait, T>( &'de mut self, max_size: usize, ) -> Pin<Box<dyn Future<Output = MResult<T>> + Send + 'async_trait>>
where T: 'async_trait + Deserialize<'de>, Self: 'async_trait, 'de: 'async_trait,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MsgPackParser for Request

source§

fn parse_msgpack<'de, 'async_trait, T>( &'de mut self, ) -> Pin<Box<dyn Future<Output = MResult<T>> + Send + 'async_trait>>
where T: 'async_trait + Deserialize<'de>, Self: 'async_trait, 'de: 'async_trait,

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

source§

fn parse_msgpack_with_max_size<'de, 'async_trait, T>( &'de mut self, max_size: usize, ) -> Pin<Box<dyn Future<Output = MResult<T>> + Send + 'async_trait>>
where T: 'async_trait + Deserialize<'de>, Self: 'async_trait, 'de: 'async_trait,

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

Implementors§