Trait otopr::decoding::DecodableMessage [−][src]
pub trait DecodableMessage<'de>: Sized {
type Tag: VarInt;
fn decode_field<B: Buf>(
&mut self,
deserializer: &mut Deserializer<'de, B>,
tag: Self::Tag
) -> Result<()>;
fn decode<B: Buf>(deserializer: &mut Deserializer<'de, B>) -> Result<Self>
where
Self: Default,
{ ... }
}
Associated Types
Required methods
fn decode_field<B: Buf>(
&mut self,
deserializer: &mut Deserializer<'de, B>,
tag: Self::Tag
) -> Result<()>
fn decode_field<B: Buf>(
&mut self,
deserializer: &mut Deserializer<'de, B>,
tag: Self::Tag
) -> Result<()>
Decodes a field with the given tag.
Skips the field if there are no matches for the tag.