pub enum NamespaceError {
UnknownPrefix(Vec<u8>),
InvalidXmlPrefixBind(Vec<u8>),
InvalidXmlnsPrefixBind(Vec<u8>),
InvalidPrefixForXml(Vec<u8>),
InvalidPrefixForXmlns(Vec<u8>),
TooManyDeclarations(usize),
TooDeeplyNested(usize),
}Expand description
Some namespace was invalid.
Variants§
UnknownPrefix(Vec<u8>)
The specified namespace prefix is unknown; a namespace cannot be resolved for it.
InvalidXmlPrefixBind(Vec<u8>)
Attempt to bind the xml prefix to something other than
http://www.w3.org/XML/1998/namespace. Contains the offending namespace.
InvalidXmlnsPrefixBind(Vec<u8>)
Attempt to bind the xmlns prefix. Contains the offending namespace.
InvalidPrefixForXml(Vec<u8>)
Attempt to bind some prefix (other than xml) to
http://www.w3.org/XML/1998/namespace. Contains the offending prefix.
InvalidPrefixForXmlns(Vec<u8>)
Attempt to bind some prefix to http://www.w3.org/2000/xmlns/. Contains
the offending prefix.
TooManyDeclarations(usize)
A single start tag declared more xmlns / xmlns:* bindings than the
configured NamespaceResolver::max_declarations_per_element limit.
Contains the configured limit.
TooDeeplyNested(usize)
Opening a new element would nest the namespace scope deeper than the
allowed maximum, either because
Config::max_element_depth
was reached, or (independent of any configured limit) because the
nesting-level counter itself cannot represent a deeper scope. Contains
the limit that was reached.
Trait Implementations§
Source§impl Clone for NamespaceError
impl Clone for NamespaceError
Source§fn clone(&self) -> NamespaceError
fn clone(&self) -> NamespaceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NamespaceError
impl Debug for NamespaceError
Source§impl Display for NamespaceError
impl Display for NamespaceError
impl Eq for NamespaceError
Source§impl Error for NamespaceError
impl Error for NamespaceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()