Struct optee_utee::Error [−][src]
pub struct Error { /* fields omitted */ }
Implementations
Creates a new instance of an Error
from a particular TEE error code.
Examples
use optee_utee;
let error = optee_utee::Error::from_raw_error(0xFFFF000F);
assert_eq!(error.kind(), optee_utee::ErrorKind::Security);
Returns the corresponding ErrorKind
for this error.
Examples
use optee_utee;
let error = optee_utee::Error::new(optee_utee::ErrorKind::Security);
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.