pub enum ReadError<E> {
Xml(Error),
Visitor(E),
Io(Error),
}Expand description
Error type for parse_read and parse_read_with_capacity.
Variants§
Xml(Error)
XML syntax error.
Visitor(E)
Error returned by a Visitor callback.
Io(Error)
I/O error from the underlying reader.
Trait Implementations§
Source§impl<E: Error> Error for ReadError<E>
Available on crate feature std only.
impl<E: Error> Error for ReadError<E>
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()
Auto Trait Implementations§
impl<E> Freeze for ReadError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ReadError<E>
impl<E> Send for ReadError<E>where
E: Send,
impl<E> Sync for ReadError<E>where
E: Sync,
impl<E> Unpin for ReadError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ReadError<E>where
E: UnsafeUnpin,
impl<E> !UnwindSafe for ReadError<E>
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