pub struct JsonArrayDecoder { /* private fields */ }Expand description
Parses array elements only once a delimiter establishes the token boundary. The retained buffer is one value, independent of transport chunk size.
Implementations§
Source§impl JsonArrayDecoder
impl JsonArrayDecoder
pub fn new(limits: CodecLimits) -> Self
pub fn push(&mut self, chunk: &[u8]) -> Result<Vec<Value>, CodecError>
pub fn finish(&mut self) -> Result<(), CodecError>
Auto Trait Implementations§
impl Freeze for JsonArrayDecoder
impl RefUnwindSafe for JsonArrayDecoder
impl Send for JsonArrayDecoder
impl Sync for JsonArrayDecoder
impl Unpin for JsonArrayDecoder
impl UnsafeUnpin for JsonArrayDecoder
impl UnwindSafe for JsonArrayDecoder
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