pub enum SignatureBuilderError {
InvalidNamespacePrefix(String),
InvalidId {
element: &'static str,
value: String,
},
MissingReference,
SigningAlgorithmDisabled(&'static str),
Serialization(Error),
InvalidUtf8(FromUtf8Error),
}Expand description
Errors produced while validating or serializing an XMLDSig template.
Variants§
InvalidNamespacePrefix(String)
A namespace prefix was not a supported XML NCName.
InvalidId
An XMLDSig Id attribute was not a valid XML NCName.
Fields
MissingReference
XMLDSig requires at least one reference in SignedInfo.
SigningAlgorithmDisabled(&'static str)
SHA-1 algorithms are available for verification but not new signatures.
Serialization(Error)
The XML writer failed.
InvalidUtf8(FromUtf8Error)
The writer unexpectedly emitted bytes that are not UTF-8.
Trait Implementations§
Source§impl Debug for SignatureBuilderError
impl Debug for SignatureBuilderError
Source§impl Display for SignatureBuilderError
impl Display for SignatureBuilderError
Source§impl Error for SignatureBuilderError
impl Error for SignatureBuilderError
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 SignatureBuilderError
impl From<Error> for SignatureBuilderError
Source§impl From<FromUtf8Error> for SignatureBuilderError
impl From<FromUtf8Error> for SignatureBuilderError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<SignatureBuilderError> for SigningError
impl From<SignatureBuilderError> for SigningError
Source§fn from(source: SignatureBuilderError) -> Self
fn from(source: SignatureBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SignatureBuilderError
impl !UnwindSafe for SignatureBuilderError
impl Freeze for SignatureBuilderError
impl Send for SignatureBuilderError
impl Sync for SignatureBuilderError
impl Unpin for SignatureBuilderError
impl UnsafeUnpin for SignatureBuilderError
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