pub enum AttestationError {
DeviceOpenFailed(String),
Driver(String),
UnexpectedResponse(String),
InvalidInput(String),
DocumentDecodingFailed(String),
Unsupported(String),
NoProvider,
Io(Error),
}Expand description
Errors produced by any attestation provider.
Variants§
DeviceOpenFailed(String)
The TEE device could not be opened (e.g. /dev/nsm).
Driver(String)
The TEE driver returned an error.
UnexpectedResponse(String)
The TEE driver returned an unexpected response.
InvalidInput(String)
Input parameter validation failed.
DocumentDecodingFailed(String)
Failed to decode or parse an attestation document.
Unsupported(String)
The requested provider is unknown, not compiled in, or not implemented.
NoProvider
No provider matches the current hardware.
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for AttestationError
impl Debug for AttestationError
Source§impl Display for AttestationError
Human-readable messages for each AttestationError variant.
impl Display for AttestationError
Human-readable messages for each AttestationError variant.
Source§impl Error for AttestationError
Allows AttestationError to be used as a standard error type.
impl Error for AttestationError
Allows AttestationError to be used as a standard error type.
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<Error> for AttestationError
Wraps I/O errors as AttestationError::Io.
impl From<Error> for AttestationError
Wraps I/O errors as AttestationError::Io.
Source§fn from(err: Error) -> Self
fn from(err: Error) -> Self
Converts an I/O error into AttestationError::Io.
Auto Trait Implementations§
impl !RefUnwindSafe for AttestationError
impl !UnwindSafe for AttestationError
impl Freeze for AttestationError
impl Send for AttestationError
impl Sync for AttestationError
impl Unpin for AttestationError
impl UnsafeUnpin for AttestationError
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