Trait mesh::payload::oneof::OneofDecode
source · pub trait OneofDecode<'de, R>: Sized {
// Required method
fn read_variant(
this: &mut InplaceOption<'_, Self>,
number: u32,
reader: FieldReader<'de, '_, R>,
) -> Result<(), Error>;
}
Expand description
A trait for decoding a oneof
field.
Required Methods§
sourcefn read_variant(
this: &mut InplaceOption<'_, Self>,
number: u32,
reader: FieldReader<'de, '_, R>,
) -> Result<(), Error>
fn read_variant( this: &mut InplaceOption<'_, Self>, number: u32, reader: FieldReader<'de, '_, R>, ) -> Result<(), Error>
Read the specified variant from the reader.
Object Safety§
This trait is not object safe.