pub enum HardwareError {
NotAvailable(String),
KeyNotFound(String),
SigningFailed(String),
VerificationFailed(String),
UnsupportedAlgorithm(SigningAlgorithm),
CommunicationError(String),
AccessDenied(String),
}Expand description
Errors from hardware operations.
Variants§
NotAvailable(String)
Hardware not available or not initialized
KeyNotFound(String)
Key not found
SigningFailed(String)
Signing operation failed
VerificationFailed(String)
Verification failed (signature invalid)
UnsupportedAlgorithm(SigningAlgorithm)
Algorithm not supported by hardware
CommunicationError(String)
Hardware communication error
AccessDenied(String)
Access denied (permissions, policies)
Trait Implementations§
Source§impl Clone for HardwareError
impl Clone for HardwareError
Source§fn clone(&self) -> HardwareError
fn clone(&self) -> HardwareError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HardwareError
impl Debug for HardwareError
Source§impl Display for HardwareError
impl Display for HardwareError
Source§impl Error for HardwareError
impl Error for HardwareError
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()
Auto Trait Implementations§
impl Freeze for HardwareError
impl RefUnwindSafe for HardwareError
impl Send for HardwareError
impl Sync for HardwareError
impl Unpin for HardwareError
impl UnwindSafe for HardwareError
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