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 error code, with handle, parameter, or session index stripped out.
§Errors
Returns a TpmErrorKind::Unreachable on error, as the error case
should be unreachable.
pub fn index(self) -> Option<TpmRcIndex>
pub fn value(self) -> u32
pub fn is_warning(self) -> bool
pub fn is_error(self) -> bool
Trait Implementations§
Source§impl TpmSized for TpmRc
impl TpmSized for TpmRc
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