pub struct AsyncJsonParser<R> { /* private fields */ }
Implementations§
Source§impl<R: AsyncRead + Unpin> AsyncJsonParser<R>
impl<R: AsyncRead + Unpin> AsyncJsonParser<R>
pub fn new(reader: R) -> Self
pub fn with_config(reader: R, config: ParserConfig) -> Self
pub fn into_stream<T: DeserializeOwned + Unpin + 'static + Serialize>( self, ) -> impl Stream<Item = Result<T, JsonParserError>>
pub async fn next<T: DeserializeOwned + Serialize>( &mut self, ) -> Result<T, JsonParserError>
pub async fn next_batch<T: DeserializeOwned + Serialize>( &mut self, ) -> Result<Vec<T>, JsonParserError>
pub async fn next_batch_array<T: DeserializeOwned + Serialize>( &mut self, ) -> Result<Vec<T>, JsonParserError>
Auto Trait Implementations§
impl<R> Freeze for AsyncJsonParser<R>where
R: Freeze,
impl<R> !RefUnwindSafe for AsyncJsonParser<R>
impl<R> Send for AsyncJsonParser<R>where
R: Send,
impl<R> Sync for AsyncJsonParser<R>where
R: Sync,
impl<R> Unpin for AsyncJsonParser<R>where
R: Unpin,
impl<R> !UnwindSafe for AsyncJsonParser<R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more