pub struct TpmRc(/* private fields */);Implementations§
Source§impl TpmRc
impl TpmRc
Sourcepub fn base(self) -> Result<TpmRcBase, TpmErrorKind>
pub fn base(self) -> Result<TpmRcBase, TpmErrorKind>
Returns the base of the response code.
§Errors
Returns TpmErrorKind::InternalError if the TpmRc was constructed
with an invalid value, indicating a bug in the library.
Sourcepub fn index(self) -> Option<TpmRcIndex>
pub fn index(self) -> Option<TpmRcIndex>
Returns the index of a parameter, handle, or session in error for format 1 response codes.
Sourcepub fn is_warning(self) -> bool
pub fn is_warning(self) -> bool
Returns true if the response code is a warning.
Trait Implementations§
impl Copy for TpmRc
impl Eq for TpmRc
impl StructuralPartialEq for TpmRc
Auto Trait Implementations§
impl Freeze for TpmRc
impl RefUnwindSafe for TpmRc
impl Send for TpmRc
impl Sync for TpmRc
impl Unpin for TpmRc
impl UnwindSafe for TpmRc
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