pub struct StreamParseError {
pub message: String,
pub location: Option<StreamPosition>,
pub parse_error: Option<Box<ParseError>>,
}Expand description
A canonical parser or stream-limit error with absolute stream coordinates.
Fields§
§message: StringHuman-readable description of the error.
location: Option<StreamPosition>Position in the complete stream, when available.
parse_error: Option<Box<ParseError>>The canonical parser error, when parsing a completed record failed.
Trait Implementations§
Source§impl Debug for StreamParseError
impl Debug for StreamParseError
Source§impl Display for StreamParseError
impl Display for StreamParseError
Source§impl Error for StreamParseError
impl Error for StreamParseError
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<ParseError> for StreamParseError
impl From<ParseError> for StreamParseError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamParseError
impl RefUnwindSafe for StreamParseError
impl Send for StreamParseError
impl Sync for StreamParseError
impl Unpin for StreamParseError
impl UnsafeUnpin for StreamParseError
impl UnwindSafe for StreamParseError
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