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
pub fn finish(self) -> Result<(), DecodeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MessageDecoder<'a>
impl<'a> RefUnwindSafe for MessageDecoder<'a>
impl<'a> Send for MessageDecoder<'a>
impl<'a> Sync for MessageDecoder<'a>
impl<'a> Unpin for MessageDecoder<'a>
impl<'a> UnwindSafe for MessageDecoder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more