pub enum BufferPush {
Incomplete,
Complete(Vec<String>),
}Expand description
Result of feeding a chunk into JsonFrameBuffer.
Variants§
Incomplete
The chunk was stored. No complete JSON value is available yet. More bytes are needed.
Complete(Vec<String>)
One or more complete JSON values were cut out, in arrival order. Each string is the text of one object or array, without the whitespace around it.
Trait Implementations§
Source§impl Clone for BufferPush
impl Clone for BufferPush
Source§fn clone(&self) -> BufferPush
fn clone(&self) -> BufferPush
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferPush
impl Debug for BufferPush
impl Eq for BufferPush
Source§impl PartialEq for BufferPush
impl PartialEq for BufferPush
Source§fn eq(&self, other: &BufferPush) -> bool
fn eq(&self, other: &BufferPush) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BufferPush
Auto Trait Implementations§
impl Freeze for BufferPush
impl RefUnwindSafe for BufferPush
impl Send for BufferPush
impl Sync for BufferPush
impl Unpin for BufferPush
impl UnsafeUnpin for BufferPush
impl UnwindSafe for BufferPush
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