[−][src]Trait muta_protocol::traits::MessageCodec
Required methods
fn encode<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ProtocolResult<Bytes>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ProtocolResult<Bytes>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn decode<'async_trait>(
bytes: Bytes
) -> Pin<Box<dyn Future<Output = ProtocolResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
bytes: Bytes
) -> Pin<Box<dyn Future<Output = ProtocolResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
Implementors
impl<T> MessageCodec for T where
T: Serialize + for<'a> Deserialize<'a> + Send + Debug + 'static,
[src]
T: Serialize + for<'a> Deserialize<'a> + Send + Debug + 'static,
fn encode<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ProtocolResult<Bytes>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ProtocolResult<Bytes>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn decode<'async_trait>(
bytes: Bytes
) -> Pin<Box<dyn Future<Output = ProtocolResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
bytes: Bytes
) -> Pin<Box<dyn Future<Output = ProtocolResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,