pub enum ReturnCode {
Tpm(TpmResponseCode),
Fapi(FapiReturnCode),
Esapi(EsapiReturnCode),
Sapi(SapiReturnCode),
Mu(MuapiReturnCode),
Tcti(TctiReturnCode),
ResourceManager(BaseReturnCode),
TpmResourceManager(TpmResponseCode),
}Expand description
Enum representing return codes and response codes from the TSS and the TPM that indicates an error.
Variants§
Tpm(TpmResponseCode)
Fapi(FapiReturnCode)
Esapi(EsapiReturnCode)
Sapi(SapiReturnCode)
Mu(MuapiReturnCode)
Tcti(TctiReturnCode)
ResourceManager(BaseReturnCode)
TpmResourceManager(TpmResponseCode)
Trait Implementations§
Source§impl Clone for ReturnCode
impl Clone for ReturnCode
Source§fn clone(&self) -> ReturnCode
fn clone(&self) -> ReturnCode
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 ReturnCode
impl Debug for ReturnCode
Source§impl Display for ReturnCode
impl Display for ReturnCode
Source§impl Error for ReturnCode
impl Error for ReturnCode
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<ReturnCode> for TSS2_RC
impl From<ReturnCode> for TSS2_RC
Source§fn from(return_code: ReturnCode) -> Self
fn from(return_code: ReturnCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
Source§impl TryFrom<u32> for ReturnCode
impl TryFrom<u32> for ReturnCode
impl Copy for ReturnCode
impl Eq for ReturnCode
impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Freeze for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnsafeUnpin for ReturnCode
impl UnwindSafe for ReturnCode
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