pub enum StreamError {
Parse(Message),
InvalidRange,
Unbalanced,
Write(Error),
}Expand description
An error while parsing, consuming, or writing a semantic stream.
Variants§
Parse(Message)
A custom event producer reported a diagnostic.
InvalidRange
A source range is out of bounds or splits a UTF-8 character.
Unbalanced
Start and end events do not form a balanced document.
Write(Error)
The caller’s output writer failed.
Trait Implementations§
Source§impl Debug for StreamError
impl Debug for StreamError
Source§impl Display for StreamError
impl Display for StreamError
Source§impl From<Error> for StreamError
impl From<Error> for StreamError
Auto Trait Implementations§
impl Freeze for StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnsafeUnpin for StreamError
impl UnwindSafe for StreamError
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