pub struct EnumRefDeserializer<'de> { /* private fields */ }
Implementations
impl<'de> EnumRefDeserializer<'de>
impl<'de> EnumRefDeserializer<'de>
pub fn new(
id: u32,
value: Option<&'de ValueRef<'de>>
) -> EnumRefDeserializer<'de>
Trait Implementations
impl<'de> EnumAccess<'de> for EnumRefDeserializer<'de>
impl<'de> EnumAccess<'de> for EnumRefDeserializer<'de>
type Error = Error
type Error = Error
The error type that can be returned if some error occurs during deserialization. Read more
type Variant = VariantRefDeserializer<'de>
type Variant = VariantRefDeserializer<'de>
The Visitor
that will be used to deserialize the content of the enum
variant. Read more
fn variant_seed<V>(
self,
seed: V
) -> Result<(<V as DeserializeSeed<'de>>::Value, <EnumRefDeserializer<'de> as EnumAccess<'de>>::Variant), <EnumRefDeserializer<'de> as EnumAccess<'de>>::Error> where
V: DeserializeSeed<'de>,
fn variant_seed<V>(
self,
seed: V
) -> Result<(<V as DeserializeSeed<'de>>::Value, <EnumRefDeserializer<'de> as EnumAccess<'de>>::Variant), <EnumRefDeserializer<'de> as EnumAccess<'de>>::Error> where
V: DeserializeSeed<'de>,
variant
is called to identify which variant to deserialize. Read more
Auto Trait Implementations
impl<'de> RefUnwindSafe for EnumRefDeserializer<'de>
impl<'de> Send for EnumRefDeserializer<'de>
impl<'de> Sync for EnumRefDeserializer<'de>
impl<'de> Unpin for EnumRefDeserializer<'de>
impl<'de> UnwindSafe for EnumRefDeserializer<'de>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more