Struct protobuf_codec::field::Oneof [] [src]

pub struct Oneof<F> { /* fields omitted */ }

Decoder and encoder for Oneof fields.

Methods

impl<F> Oneof<F>
[src]

[src]

Makes a new Oneof instance.

Trait Implementations

impl<F: Debug> Debug for Oneof<F>
[src]

[src]

Formats the value using the given formatter. Read more

impl<F: Default> Default for Oneof<F>
[src]

[src]

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

impl<A, B> Decode for Oneof<(A, B)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode
[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<A, B> FieldDecode for Oneof<(A, B)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<A, B> RequiredFieldDecode for Oneof<(A, B)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode
[src]

[src]

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

impl<A, B, C> Decode for Oneof<(A, B, C)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode
[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<A, B, C> FieldDecode for Oneof<(A, B, C)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<A, B, C> RequiredFieldDecode for Oneof<(A, B, C)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode
[src]

[src]

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

impl<A, B, C, D> Decode for Oneof<(A, B, C, D)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode
[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<A, B, C, D> FieldDecode for Oneof<(A, B, C, D)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<A, B, C, D> RequiredFieldDecode for Oneof<(A, B, C, D)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode
[src]

[src]

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

impl<A, B, C, D, E> Decode for Oneof<(A, B, C, D, E)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode
[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<A, B, C, D, E> FieldDecode for Oneof<(A, B, C, D, E)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<A, B, C, D, E> RequiredFieldDecode for Oneof<(A, B, C, D, E)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode
[src]

[src]

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

impl<A, B, C, D, E, F> Decode for Oneof<(A, B, C, D, E, F)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode
[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<A, B, C, D, E, F> FieldDecode for Oneof<(A, B, C, D, E, F)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<A, B, C, D, E, F> RequiredFieldDecode for Oneof<(A, B, C, D, E, F)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode
[src]

[src]

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

impl<A, B, C, D, E, F, G> Decode for Oneof<(A, B, C, D, E, F, G)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode,
    G: RequiredFieldDecode
[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<A, B, C, D, E, F, G> FieldDecode for Oneof<(A, B, C, D, E, F, G)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode,
    G: RequiredFieldDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<A, B, C, D, E, F, G> RequiredFieldDecode for Oneof<(A, B, C, D, E, F, G)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode,
    G: RequiredFieldDecode
[src]

[src]

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

impl<A, B, C, D, E, F, G, H> Decode for Oneof<(A, B, C, D, E, F, G, H)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode,
    G: RequiredFieldDecode,
    H: RequiredFieldDecode
[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<A, B, C, D, E, F, G, H> FieldDecode for Oneof<(A, B, C, D, E, F, G, H)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode,
    G: RequiredFieldDecode,
    H: RequiredFieldDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<A, B, C, D, E, F, G, H> RequiredFieldDecode for Oneof<(A, B, C, D, E, F, G, H)> where
    A: RequiredFieldDecode,
    B: RequiredFieldDecode,
    C: RequiredFieldDecode,
    D: RequiredFieldDecode,
    E: RequiredFieldDecode,
    F: RequiredFieldDecode,
    G: RequiredFieldDecode,
    H: RequiredFieldDecode
[src]

[src]

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

impl<A, B> Encode for Oneof<(A, B)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<A, B> FieldEncode for Oneof<(A, B)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode
[src]

impl<A, B> RequiredFieldEncode for Oneof<(A, B)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode
[src]

impl<A, B> SizedEncode for Oneof<(A, B)> where
    A: RequiredFieldEncode + SizedEncode,
    B: RequiredFieldEncode + SizedEncode
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<A, B, C> Encode for Oneof<(A, B, C)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<A, B, C> FieldEncode for Oneof<(A, B, C)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode
[src]

impl<A, B, C> RequiredFieldEncode for Oneof<(A, B, C)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode
[src]

impl<A, B, C> SizedEncode for Oneof<(A, B, C)> where
    A: RequiredFieldEncode + SizedEncode,
    B: RequiredFieldEncode + SizedEncode,
    C: RequiredFieldEncode + SizedEncode
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<A, B, C, D> Encode for Oneof<(A, B, C, D)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<A, B, C, D> FieldEncode for Oneof<(A, B, C, D)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode
[src]

impl<A, B, C, D> RequiredFieldEncode for Oneof<(A, B, C, D)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode
[src]

impl<A, B, C, D> SizedEncode for Oneof<(A, B, C, D)> where
    A: RequiredFieldEncode + SizedEncode,
    B: RequiredFieldEncode + SizedEncode,
    C: RequiredFieldEncode + SizedEncode,
    D: RequiredFieldEncode + SizedEncode
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<A, B, C, D, E> Encode for Oneof<(A, B, C, D, E)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<A, B, C, D, E> FieldEncode for Oneof<(A, B, C, D, E)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode
[src]

impl<A, B, C, D, E> RequiredFieldEncode for Oneof<(A, B, C, D, E)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode
[src]

impl<A, B, C, D, E> SizedEncode for Oneof<(A, B, C, D, E)> where
    A: RequiredFieldEncode + SizedEncode,
    B: RequiredFieldEncode + SizedEncode,
    C: RequiredFieldEncode + SizedEncode,
    D: RequiredFieldEncode + SizedEncode,
    E: RequiredFieldEncode + SizedEncode
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<A, B, C, D, E, F> Encode for Oneof<(A, B, C, D, E, F)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<A, B, C, D, E, F> FieldEncode for Oneof<(A, B, C, D, E, F)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode
[src]

impl<A, B, C, D, E, F> RequiredFieldEncode for Oneof<(A, B, C, D, E, F)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode
[src]

impl<A, B, C, D, E, F> SizedEncode for Oneof<(A, B, C, D, E, F)> where
    A: RequiredFieldEncode + SizedEncode,
    B: RequiredFieldEncode + SizedEncode,
    C: RequiredFieldEncode + SizedEncode,
    D: RequiredFieldEncode + SizedEncode,
    E: RequiredFieldEncode + SizedEncode,
    F: RequiredFieldEncode + SizedEncode
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<A, B, C, D, E, F, G> Encode for Oneof<(A, B, C, D, E, F, G)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode,
    G: RequiredFieldEncode
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<A, B, C, D, E, F, G> FieldEncode for Oneof<(A, B, C, D, E, F, G)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode,
    G: RequiredFieldEncode
[src]

impl<A, B, C, D, E, F, G> RequiredFieldEncode for Oneof<(A, B, C, D, E, F, G)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode,
    G: RequiredFieldEncode
[src]

impl<A, B, C, D, E, F, G> SizedEncode for Oneof<(A, B, C, D, E, F, G)> where
    A: RequiredFieldEncode + SizedEncode,
    B: RequiredFieldEncode + SizedEncode,
    C: RequiredFieldEncode + SizedEncode,
    D: RequiredFieldEncode + SizedEncode,
    E: RequiredFieldEncode + SizedEncode,
    F: RequiredFieldEncode + SizedEncode,
    G: RequiredFieldEncode + SizedEncode
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<A, B, C, D, E, F, G, H> Encode for Oneof<(A, B, C, D, E, F, G, H)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode,
    G: RequiredFieldEncode,
    H: RequiredFieldEncode
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<A, B, C, D, E, F, G, H> FieldEncode for Oneof<(A, B, C, D, E, F, G, H)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode,
    G: RequiredFieldEncode,
    H: RequiredFieldEncode
[src]

impl<A, B, C, D, E, F, G, H> RequiredFieldEncode for Oneof<(A, B, C, D, E, F, G, H)> where
    A: RequiredFieldEncode,
    B: RequiredFieldEncode,
    C: RequiredFieldEncode,
    D: RequiredFieldEncode,
    E: RequiredFieldEncode,
    F: RequiredFieldEncode,
    G: RequiredFieldEncode,
    H: RequiredFieldEncode
[src]

impl<A, B, C, D, E, F, G, H> SizedEncode for Oneof<(A, B, C, D, E, F, G, H)> where
    A: RequiredFieldEncode + SizedEncode,
    B: RequiredFieldEncode + SizedEncode,
    C: RequiredFieldEncode + SizedEncode,
    D: RequiredFieldEncode + SizedEncode,
    E: RequiredFieldEncode + SizedEncode,
    F: RequiredFieldEncode + SizedEncode,
    G: RequiredFieldEncode + SizedEncode,
    H: RequiredFieldEncode + SizedEncode
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

Auto Trait Implementations

impl<F> Send for Oneof<F> where
    F: Send

impl<F> Sync for Oneof<F> where
    F: Sync