pub enum ParseError {
BackendUnavailable {
backend: XmlBackend,
},
ByteLimitReached {
maximum: usize,
actual: usize,
},
DtdDetected,
NodesLimitReached,
EntityExpansionLimitReached {
maximum: u32,
actual: u32,
},
EntityExpansionWorkLimitReached {
maximum: usize,
actual: usize,
},
SourcePositionLimitReached {
maximum: usize,
actual: usize,
},
DepthLimitReached {
maximum: usize,
actual: usize,
},
Backend {
backend: &'static str,
message: String,
},
BackendDivergence {
reason: String,
},
}Expand description
Stable parser-neutral XML parse error.
Variants§
The requested parser implementation was not compiled into this build.
ByteLimitReached
The absolute source-document byte ceiling was exceeded.
Fields
DtdDetected
A DTD was found while DTD processing was disabled.
NodesLimitReached
The retained semantic node ceiling was exceeded.
EntityExpansionLimitReached
The absolute general-entity substitution ceiling was exceeded.
Fields
EntityExpansionWorkLimitReached
The absolute entity replacement-work ceiling was exceeded.
Fields
SourcePositionLimitReached
The source-position sidecar reached its absolute allocation ceiling.
Fields
DepthLimitReached
The absolute XML element nesting ceiling was exceeded.
Fields
Backend
The selected backend rejected malformed XML.
Fields
BackendDivergence
The two parsers produced different retained XML semantics.
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
impl Eq for ParseError
Source§impl Error for ParseError
impl Error for ParseError
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()
Source§impl From<ParseError> for XmlDocumentError
impl From<ParseError> for XmlDocumentError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for SignatureBuilderError
impl From<ParseError> for SignatureBuilderError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for XmlMutationError
impl From<ParseError> for XmlMutationError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for SigningDigestError
impl From<ParseError> for SigningDigestError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for DsigError
impl From<ParseError> for DsigError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for XmlEncError
impl From<ParseError> for XmlEncError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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