[−][src]Struct destream_json::de::Decoder
A structure that decodes Rust values from a JSON stream.
Trait Implementations
impl<S: Stream<Item = Result<Vec<u8>, Error>> + Send + Unpin> Decoder for Decoder<S>
[src]
type Error = Error
Type to return in case of a decoding error.
pub fn decode_any<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_bool<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_i8<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_i16<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_i32<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_i64<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_u8<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_u16<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_u32<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_u64<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_f32<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_f64<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_string<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_byte_buf<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_option<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_seq<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_unit<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<<V as Visitor>::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<<V as Visitor>::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_tuple<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
len: usize,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
len: usize,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_map<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn decode_ignored_any<'life0, 'async_trait, V: Visitor>(
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
visitor: V
) -> Pin<Box<dyn Future<Output = Result<V::Value, Self::Error>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl<S: Stream> From<S> for Decoder<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Decoder<S> where
S: RefUnwindSafe,
[src]
S: RefUnwindSafe,
impl<S> Send for Decoder<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for Decoder<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for Decoder<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for Decoder<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,