Struct protobuf_codec::field::MessageFieldDecoder [] [src]

pub struct MessageFieldDecoder<F, D: MessageDecode> { /* fields omitted */ }

Encoder for required embedded message fields.

Methods

impl<F, D: MessageDecode> MessageFieldDecoder<F, D>
[src]

[src]

Makes a new MessageFieldDecoder instance.

Trait Implementations

impl<F: Debug, D: Debug + MessageDecode> Debug for MessageFieldDecoder<F, D>
[src]

[src]

Formats the value using the given formatter. Read more

impl<F: Default, D: Default + MessageDecode> Default for MessageFieldDecoder<F, D>
[src]

[src]

Returns the "default value" for a type. Read more

impl<F, D> Decode for MessageFieldDecoder<F, D> where
    F: Copy + Into<FieldNum>,
    D: MessageDecode
[src]

The type of items to be decoded.

[src]

Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more

[src]

Finishes the current decoding process and returns the decoded item. Read more

[src]

Returns true if there are no items to be decoded by the decoder at the next invocation of decode method, otherwise false. Read more

[src]

Returns the lower bound of the number of bytes needed to decode the next item. Read more

impl<F, D> FieldDecode for MessageFieldDecoder<F, D> where
    F: Copy + Into<FieldNum>,
    D: MessageDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<F, D> RequiredFieldDecode for MessageFieldDecoder<F, D> where
    F: Copy + Into<FieldNum>,
    D: MessageDecode
[src]

[src]

Returns true if this field has been present in the target input stream, otherwise false. Read more

Auto Trait Implementations

impl<F, D> Send for MessageFieldDecoder<F, D> where
    D: Send,
    F: Send

impl<F, D> Sync for MessageFieldDecoder<F, D> where
    D: Sync,
    F: Sync