pub struct FapiReturnCode { /* private fields */ }Expand description
Enum representing the error codes generated by the FAPI layer in TSS.
Implementations§
Source§impl FapiReturnCode
impl FapiReturnCode
Sourcepub const fn base_error(&self) -> BaseError
pub const fn base_error(&self) -> BaseError
Returns the BaseError associated with the FAPI return code.
Trait Implementations§
Source§impl Clone for FapiReturnCode
impl Clone for FapiReturnCode
Source§fn clone(&self) -> FapiReturnCode
fn clone(&self) -> FapiReturnCode
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 FapiReturnCode
impl Debug for FapiReturnCode
Source§impl Display for FapiReturnCode
impl Display for FapiReturnCode
Source§impl Error for FapiReturnCode
impl Error for FapiReturnCode
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<FapiReturnCode> for BaseError
impl From<FapiReturnCode> for BaseError
Source§fn from(fapi_return_code: FapiReturnCode) -> Self
fn from(fapi_return_code: FapiReturnCode) -> Self
Converts to this type from the input type.
Source§impl From<FapiReturnCode> for BaseReturnCode
impl From<FapiReturnCode> for BaseReturnCode
Source§fn from(fapi_return_code: FapiReturnCode) -> Self
fn from(fapi_return_code: FapiReturnCode) -> Self
Converts to this type from the input type.
Source§impl From<FapiReturnCode> for u16
impl From<FapiReturnCode> for u16
Source§fn from(fapi_error_code: FapiReturnCode) -> Self
fn from(fapi_error_code: FapiReturnCode) -> Self
Converts to this type from the input type.
Source§impl Hash for FapiReturnCode
impl Hash for FapiReturnCode
Source§impl PartialEq for FapiReturnCode
impl PartialEq for FapiReturnCode
Source§impl TryFrom<BaseError> for FapiReturnCode
impl TryFrom<BaseError> for FapiReturnCode
Source§impl TryFrom<BaseReturnCode> for FapiReturnCode
impl TryFrom<BaseReturnCode> for FapiReturnCode
Source§impl TryFrom<u16> for FapiReturnCode
impl TryFrom<u16> for FapiReturnCode
impl Copy for FapiReturnCode
impl Eq for FapiReturnCode
impl StructuralPartialEq for FapiReturnCode
Auto Trait Implementations§
impl Freeze for FapiReturnCode
impl RefUnwindSafe for FapiReturnCode
impl Send for FapiReturnCode
impl Sync for FapiReturnCode
impl Unpin for FapiReturnCode
impl UnsafeUnpin for FapiReturnCode
impl UnwindSafe for FapiReturnCode
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