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