#[non_exhaustive]pub struct TruncatedJson {
pub buffered: usize,
}Expand description
Error produced when a JSON byte stream ends while a top-level value is still
incomplete (see JsonSplitter::finish).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.buffered: usizeThe number of bytes that were buffered for the unfinished value.
Trait Implementations§
Source§impl Clone for TruncatedJson
impl Clone for TruncatedJson
Source§fn clone(&self) -> TruncatedJson
fn clone(&self) -> TruncatedJson
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 TruncatedJson
impl Debug for TruncatedJson
Source§impl Display for TruncatedJson
impl Display for TruncatedJson
impl Eq for TruncatedJson
Source§impl Error for TruncatedJson
Available on crate feature std only.
impl Error for TruncatedJson
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TruncatedJson> for FinishError
impl From<TruncatedJson> for FinishError
Source§fn from(e: TruncatedJson) -> Self
fn from(e: TruncatedJson) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TruncatedJson
impl PartialEq for TruncatedJson
Source§fn eq(&self, other: &TruncatedJson) -> bool
fn eq(&self, other: &TruncatedJson) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TruncatedJson
Auto Trait Implementations§
impl Freeze for TruncatedJson
impl RefUnwindSafe for TruncatedJson
impl Send for TruncatedJson
impl Sync for TruncatedJson
impl Unpin for TruncatedJson
impl UnsafeUnpin for TruncatedJson
impl UnwindSafe for TruncatedJson
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