Struct pbcodec::fields::Oneof2
[−]
[src]
pub struct Oneof2<A, B> { pub field: Option<Variant2<A, B>>, }
Fields
field: Option<Variant2<A, B>>
Trait Implementations
impl<A: Debug, B: Debug> Debug for Oneof2<A, B>
[src]
impl<A, B> Field for Oneof2<A, B> where
A: SingularField,
B: SingularField,
[src]
A: SingularField,
B: SingularField,
impl<A, B> From<Variant2<A, B>> for Oneof2<A, B>
[src]
impl<A, B> From<Option<Variant2<A, B>>> for Oneof2<A, B>
[src]
impl<A, B> Default for Oneof2<A, B>
[src]
impl<R, A, B> DecodeField<R> for Oneof2<A, B> where
R: Read,
A: DecodeField<R> + SingularField,
B: DecodeField<R> + SingularField,
[src]
R: Read,
A: DecodeField<R> + SingularField,
B: DecodeField<R> + SingularField,
type Future = DecodeOneof2<R, A, B>
fn is_target(tag: u32) -> bool
fn decode_field(
self,
reader: R,
tag: u32,
wire_type: WireType
) -> Result<Self::Future, Error<R>>
self,
reader: R,
tag: u32,
wire_type: WireType
) -> Result<Self::Future, Error<R>>
impl<W, A, B> Encode<W> for Oneof2<A, B> where
W: Write,
A: Encode<W> + SingularField,
B: Encode<W> + SingularField,
[src]
W: Write,
A: Encode<W> + SingularField,
B: Encode<W> + SingularField,