pub struct MessageReader<'a, 'b, R> { /* private fields */ }
Expand description
Reader for an message.
Implements Iterator
to return (field number, FieldReader
) pairs.
Users must be prepared to handle fields in any order, allowing unknown and
duplicate fields.
Implementations§
Source§impl<'a, 'b, R> MessageReader<'a, 'b, R>
impl<'a, 'b, R> MessageReader<'a, 'b, R>
Sourcepub fn take_resources(&mut self) -> impl ExactSizeIterator + use<'b, R>
pub fn take_resources(&mut self) -> impl ExactSizeIterator + use<'b, R>
Returns an iterator to consume the resources for this message.
Trait Implementations§
Source§impl<'a, 'b, R> IntoIterator for MessageReader<'a, 'b, R>
impl<'a, 'b, R> IntoIterator for MessageReader<'a, 'b, R>
Source§type Item = Result<(u32, FieldReader<'a, 'b, R>), Error>
type Item = Result<(u32, FieldReader<'a, 'b, R>), Error>
The type of the elements being iterated over.
Source§type IntoIter = FieldIterator<'a, 'b, R>
type IntoIter = FieldIterator<'a, 'b, R>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <MessageReader<'a, 'b, R> as IntoIterator>::IntoIter
fn into_iter(self) -> <MessageReader<'a, 'b, R> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl<'a, 'b, R> Freeze for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !RefUnwindSafe for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !Send for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !Sync for MessageReader<'a, 'b, R>
impl<'a, 'b, R> Unpin for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !UnwindSafe for MessageReader<'a, 'b, R>
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