Enum xmlparser::StreamError [−][src]
pub enum StreamError {
UnexpectedEndOfStream,
InvalidName,
InvalidChar(Vec<u8>, TextPos),
InvalidQuote(char, TextPos),
InvalidSpace(char, TextPos),
InvalidString(Vec<String>, TextPos),
InvalidReference,
InvalidExternalID,
}A stream parser errors.
Variants
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 unknown token.
InvalidChar(Vec<u8>, TextPos)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, TextPos)An unexpected character instead of " or '.
InvalidSpace(char, TextPos)An unexpected character instead of an XML space.
Includes: ' ' \n \r \t   	 
 
.
InvalidString(Vec<String>, TextPos)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.
InvalidReferenceAn invalid reference.
InvalidExternalIDAn invalid ExternalID in the DTD.
Trait Implementations
impl Debug for StreamError[src]
impl Debug for StreamErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for StreamError[src]
impl Display for StreamErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for StreamError[src]
impl Error for StreamErrorAuto Trait Implementations
impl Send for StreamError
impl Send for StreamErrorimpl Sync for StreamError
impl Sync for StreamError