Trait RequiredFieldDecode

Source
pub trait RequiredFieldDecode: FieldDecode {
    // Required method
    fn is_present(&self) -> bool;
}
Expand description

This trait allows for decoding required fields.

Required Methods§

Source

fn is_present(&self) -> bool

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

Operationally, it means that the start_decoding method has been accepted by the decoder but the corresponding finish_decoding method has not been called yet.

Implementors§

Source§

impl<A, B> RequiredFieldDecode for Oneof<(A, B)>

Source§

impl<A, B, C> RequiredFieldDecode for Oneof<(A, B, C)>

Source§

impl<A, B, C, D> RequiredFieldDecode for Oneof<(A, B, C, D)>

Source§

impl<A, B, C, D, E> RequiredFieldDecode for Oneof<(A, B, C, D, E)>

Source§

impl<A, B, C, D, E, F> RequiredFieldDecode for Oneof<(A, B, C, D, E, F)>

Source§

impl<A, B, C, D, E, F, G> RequiredFieldDecode for Oneof<(A, B, C, D, E, F, G)>

Source§

impl<A, B, C, D, E, F, G, H> RequiredFieldDecode for Oneof<(A, B, C, D, E, F, G, H)>

Source§

impl<F, D> RequiredFieldDecode for FieldDecoder<F, D>
where F: Copy + Into<FieldNum>, D: ValueDecode,

Source§

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