Struct rmp_serde::decode::VariantVisitor [] [src]

pub struct VariantVisitor<'a, R: Read + 'a> { /* fields omitted */ }

Default variant visitor.

Note

We use default behaviour for new type, which decodes enums with a single value as a tuple.

Methods

impl<'a, R: Read + 'a> VariantVisitor<'a, R>
[src]

Trait Implementations

impl<'a, R: Read> EnumVisitor for VariantVisitor<'a, R>
[src]

The error type that can be returned if some error occurs during deserialization. Read more

The Visitor that will be used to deserialize the content of the enum variant. Read more

visit_variant is called to identify which variant to deserialize. Read more

visit_variant is called to identify which variant to deserialize. Read more

impl<'a, R: Read> VariantVisitor for VariantVisitor<'a, R>
[src]

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumVisitor. Read more

Called when deserializing a variant with no values. Read more

Called when deserializing a variant with a single value. Read more

Called when deserializing a tuple-like variant. Read more

Called when deserializing a struct-like variant. Read more

Called when deserializing a variant with a single value. Read more