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§
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,
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
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,
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,
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.