Trait async_prost::Framed [−][src]
encode and decode for frame
Required methods
fn decode(buf: &[u8], header_len: usize) -> Result<Self, Error> where
Self: Default,
[src]
Self: Default,
decode header(if exists) and body
fn encoded_len(&self) -> u32 where
Self: Sized,
[src]
Self: Sized,
encoded length
fn encode<B>(&self, buf: &mut B) -> Result<(), Error> where
B: BufMut,
Self: Sized,
[src]
B: BufMut,
Self: Sized,
encode header and body, with length
Implementors
impl<H, T> Framed for Frame<H, T> where
H: Message + ShallDecodeBody + Default,
T: Message + Default,
[src]
H: Message + ShallDecodeBody + Default,
T: Message + Default,