Enum xmlparser::StreamError [−][src]
pub enum StreamError { UnexpectedEndOfStream, InvalidName, InvalidChar(Vec<u8>, ErrorPos), InvalidQuote(char, ErrorPos), InvalidSpace(char, ErrorPos), InvalidString(Vec<String>, ErrorPos), InvalidReference, InvalidExternalID, }
A stream parser errors.
Variants
UnexpectedEndOfStream
The steam ended earlier than we expected.
Should only appear on invalid input data. Errors in a valid XML should be handled by errors below.
InvalidName
An unknown token.
InvalidChar(Vec<u8>, ErrorPos)
An invalid/unexpected character.
The first byte is an actual one, others - expected.
We are using a single value to reduce the struct size.
InvalidQuote(char, ErrorPos)
An unexpected character instead of "
or '
.
InvalidSpace(char, ErrorPos)
An unexpected character instead of an XML space.
Includes: ' ' \n \r \t   	 
 

.
InvalidString(Vec<String>, ErrorPos)
An unexpected character instead of an XML space.
The first string is an actual one, others - expected.
We are using a single value to reduce the struct size.
InvalidReference
An invalid reference.
InvalidExternalID
An invalid ExternalID in the DTD.
Trait Implementations
impl Debug for StreamError
[src]
impl Debug for StreamError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for StreamError
[src]
impl Display for StreamError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for StreamError
[src]
impl Error for StreamError
Auto Trait Implementations
impl Send for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Sync for StreamError