pub enum ProxySignatureError {
Libsodium(SodiumError),
InvalidDelegation,
ProxyKeyMismatch,
Utf8Error(Utf8Error),
InvalidLength {
expected: usize,
actual: usize,
},
}Expand description
Custom error type for proxy signature operations
Variants§
Libsodium(SodiumError)
Error from libsodium operations
InvalidDelegation
Invalid delegation token that failed verification
ProxyKeyMismatch
Proxy key derivation resulted in mismatched keys
Utf8Error(Utf8Error)
UTF-8 encoding error
InvalidLength
Invalid length for byte conversion
Trait Implementations§
Source§impl Debug for ProxySignatureError
impl Debug for ProxySignatureError
Source§impl Display for ProxySignatureError
impl Display for ProxySignatureError
Source§impl Error for ProxySignatureError
impl Error for ProxySignatureError
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<SodiumError> for ProxySignatureError
impl From<SodiumError> for ProxySignatureError
Source§fn from(error: SodiumError) -> Self
fn from(error: SodiumError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProxySignatureError
impl RefUnwindSafe for ProxySignatureError
impl Send for ProxySignatureError
impl Sync for ProxySignatureError
impl Unpin for ProxySignatureError
impl UnwindSafe for ProxySignatureError
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