Struct protobuf_codec::message::EmbeddedMessageDecoder
[−]
[src]
pub struct EmbeddedMessageDecoder<M>(_);
Decoder for embedded messages.
Methods
impl<M: MessageDecode> EmbeddedMessageDecoder<M>
[src]
Trait Implementations
impl<M: Debug> Debug for EmbeddedMessageDecoder<M>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<M: Default> Default for EmbeddedMessageDecoder<M>
[src]
fn default() -> EmbeddedMessageDecoder<M>
[src]
Returns the "default value" for a type. Read more
impl<M: MessageDecode> Decode for EmbeddedMessageDecoder<M>
[src]
type Item = M::Item
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<M: MessageDecode> ValueDecode for EmbeddedMessageDecoder<M>
[src]
fn wire_type(&self) -> WireType
[src]
Returns the wire type of the value.
fn merge_values(old: &mut Self::Item, new: Self::Item)
[src]
Merges duplicate values.
impl<M: MessageDecode> OptionalValueDecode for EmbeddedMessageDecoder<M>
[src]
Auto Trait Implementations
impl<M> Send for EmbeddedMessageDecoder<M> where
M: Send,
M: Send,
impl<M> Sync for EmbeddedMessageDecoder<M> where
M: Sync,
M: Sync,