pub enum MessageSignatureError {
SignatureFailed(String),
InvalidQuery,
InvalidResponse,
InvalidPublicKey,
InvalidSecretKey,
MissingAlgorithm,
UnsupportedAlgorithm(String),
UnsupportedVerificationMethod(String),
TooManyMessages,
MissingMessage,
}Variants§
SignatureFailed(String)
InvalidQuery
InvalidResponse
InvalidPublicKey
InvalidSecretKey
MissingAlgorithm
UnsupportedAlgorithm(String)
UnsupportedVerificationMethod(String)
TooManyMessages
Signature algorithm does not support multi-message signing.
MissingMessage
Signature algorithm requires at least one message.
Implementations§
Source§impl MessageSignatureError
impl MessageSignatureError
pub fn signature_failed(e: impl ToString) -> Self
Trait Implementations§
Source§impl Debug for MessageSignatureError
impl Debug for MessageSignatureError
Source§impl Display for MessageSignatureError
impl Display for MessageSignatureError
Source§impl Error for MessageSignatureError
impl Error for MessageSignatureError
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<AlgorithmError> for MessageSignatureError
impl From<AlgorithmError> for MessageSignatureError
Source§fn from(value: AlgorithmError) -> Self
fn from(value: AlgorithmError) -> Self
Converts to this type from the input type.
Source§impl From<MessageSignatureError> for SignatureError
impl From<MessageSignatureError> for SignatureError
Source§fn from(value: MessageSignatureError) -> Self
fn from(value: MessageSignatureError) -> Self
Converts to this type from the input type.
Source§impl From<UnsupportedAlgorithm> for MessageSignatureError
impl From<UnsupportedAlgorithm> for MessageSignatureError
Source§fn from(value: UnsupportedAlgorithm) -> Self
fn from(value: UnsupportedAlgorithm) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageSignatureError
impl RefUnwindSafe for MessageSignatureError
impl Send for MessageSignatureError
impl Sync for MessageSignatureError
impl Unpin for MessageSignatureError
impl UnwindSafe for MessageSignatureError
Blanket Implementations§
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.