Struct fire_protobuf::decode::MessageDecoder
source · pub struct MessageDecoder<'a> { /* private fields */ }Implementations§
source§impl<'a> MessageDecoder<'a>
impl<'a> MessageDecoder<'a>
pub fn new(bytes: &'a [u8]) -> Self
pub fn try_from_kind(kind: FieldKind<'a>) -> Result<Self, DecodeError>
sourcepub fn next(&mut self) -> Result<Option<Field<'a>>, DecodeError>
pub fn next(&mut self) -> Result<Option<Field<'a>>, DecodeError>
If this returns Ok(None), this means there will never be any more fields