Struct destream_json::de::Decoder [−][src]
A structure that decodes Rust values from a JSON stream.
Implementations
impl<A: AsyncRead> Decoder<A> where
SourceReader<A>: Read,
[src]
SourceReader<A>: Read,
pub fn from_reader(reader: A) -> Decoder<SourceReader<A>>
[src]
impl<S: Stream> Decoder<SourceStream<S>> where
SourceStream<S>: Read,
[src]
SourceStream<S>: Read,
pub fn from_stream(stream: S) -> Decoder<SourceStream<S>>
[src]
Trait Implementations
impl<R: Read> Decoder for Decoder<R>
[src]
type Error = Error
Type to return in case of a decoding error.
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
Auto Trait Implementations
impl<R> RefUnwindSafe for Decoder<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for Decoder<R> where
R: Send,
R: Send,
impl<R> Sync for Decoder<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Decoder<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Decoder<R> where
R: UnwindSafe,
R: 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>,