pub enum XmlMutationError {
XmlParse(Error),
Read(Error),
Write(Error),
InvalidUtf8(FromUtf8Error),
InvalidSignatureTemplate,
ValueCountMismatch {
element: &'static str,
expected: usize,
actual: usize,
},
MissingRootElement,
}Expand description
Errors produced by XMLDSig XML mutation helpers.
Variants§
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.
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)>
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<Error> for XmlMutationError
impl From<Error> for XmlMutationError
Source§impl From<Error> for XmlMutationError
impl From<Error> for XmlMutationError
Source§impl From<Error> for XmlMutationError
impl From<Error> for XmlMutationError
Source§impl From<FromUtf8Error> for XmlMutationError
impl From<FromUtf8Error> for XmlMutationError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<XmlMutationError> for SigningDigestError
impl From<XmlMutationError> for SigningDigestError
Source§fn from(source: XmlMutationError) -> Self
fn from(source: XmlMutationError) -> Self
Converts to this type from the input type.
Source§impl From<XmlMutationError> for SigningError
impl From<XmlMutationError> for SigningError
Source§fn from(source: XmlMutationError) -> Self
fn from(source: XmlMutationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for XmlMutationError
impl !UnwindSafe for XmlMutationError
impl Freeze for XmlMutationError
impl Send for XmlMutationError
impl Sync for XmlMutationError
impl Unpin for XmlMutationError
impl UnsafeUnpin for XmlMutationError
Blanket Implementations§
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