pub struct JsonReconstructor { /* private fields */ }Expand description
Client-side JSON reconstruction engine
Applies streaming patches to progressively build complete JSON structure
Implementations§
Source§impl JsonReconstructor
impl JsonReconstructor
Sourcepub fn add_frame(&mut self, frame: PriorityStreamFrame)
pub fn add_frame(&mut self, frame: PriorityStreamFrame)
Add a frame to the reconstruction queue
Sourcepub fn process_next_frame(&mut self) -> Result<ProcessResult>
pub fn process_next_frame(&mut self) -> Result<ProcessResult>
Process next frame in the queue
Sourcepub fn process_all_frames(&mut self) -> Result<Vec<ProcessResult>>
pub fn process_all_frames(&mut self) -> Result<Vec<ProcessResult>>
Process all queued frames
Sourcepub fn current_state(&self) -> &JsonValue
pub fn current_state(&self) -> &JsonValue
Get current JSON state (read-only)
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if reconstruction is complete
Sourcepub fn stats(&self) -> &ReconstructionStats
pub fn stats(&self) -> &ReconstructionStats
Get reconstruction statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonReconstructor
impl RefUnwindSafe for JsonReconstructor
impl Send for JsonReconstructor
impl Sync for JsonReconstructor
impl Unpin for JsonReconstructor
impl UnwindSafe for JsonReconstructor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more