Struct mesh::payload::protobuf::MessageReader
source · 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 + 'b
pub fn take_resources(&mut self) -> impl ExactSizeIterator + 'b
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