Enum xmlparser::StreamErrorKind
[−]
pub enum StreamErrorKind {
Msg(String),
UnexpectedEndOfStream,
InvalidName,
InvalidChar(char, String, ErrorPos),
InvalidReference,
// some variants omitted
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
UnexpectedEndOfStreamThe steam ended earlier than we expected.
Should only appear on invalid input data. Errors in a valid XML should be handled by errors below.
InvalidNameAn invalid Name.
InvalidChar(char, String, ErrorPos)An invalid/unexpected character in the stream.
InvalidReferenceAn invalid reference.
Methods
impl StreamErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for StreamErrorKind
impl Display for StreamErrorKind
impl<'a> From<&'a str> for StreamErrorKind
impl From<String> for StreamErrorKind
impl From<StreamError> for StreamErrorKind
fn from(e: StreamError) -> Self
Performs the conversion.