pub enum XmlMutationError {
Policy(PolicyViolation),
XmlParse(Error),
Read(Error),
Write(Error),
InvalidUtf8(FromUtf8Error),
InvalidSignatureTemplate,
ValueCountMismatch {
element: &'static str,
expected: usize,
actual: usize,
},
MissingRootElement,
InvalidAppendTarget,
EmptyKeyInfoSource,
ConflictingKeyInfoNamespace {
prefix: String,
},
ConflictingKeyInfoAttribute {
name: String,
},
}Expand description
Errors produced by XMLDSig XML mutation helpers.
Variants§
Policy(PolicyViolation)
The compiled signing policy rejected an intermediate XML document.
XmlParse(Error)
Input XML or generated template is not parseable XML.
Read(Error)
The streaming XML reader failed.
Write(Error)
The streaming XML writer failed.
InvalidUtf8(FromUtf8Error)
The writer unexpectedly emitted non-UTF-8 bytes.
InvalidSignatureTemplate
A template did not contain exactly one XMLDSig <Signature> root.
ValueCountMismatch
A replacement call supplied a different number of values than matching elements.
Fields
MissingRootElement
The source XML did not contain a root element that can receive a signature.
InvalidAppendTarget
The selected source element cannot receive an appended signature.
EmptyKeyInfoSource
A key-info writer emitted no element child to merge.
ConflictingKeyInfoNamespace
A reusable placeholder binds a generated namespace prefix differently.
ConflictingKeyInfoAttribute
A reusable placeholder carries a different value for a generated attribute.
Trait Implementations§
Source§impl Debug for XmlMutationError
impl Debug for XmlMutationError
Source§impl Display for XmlMutationError
impl Display for XmlMutationError
Source§impl Error for XmlMutationError
impl Error for XmlMutationError
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()