#[repr(u32)]pub enum TpmResponseCode {
Success = 0,
Failure = 257,
BadTag = 30,
Retry = 2_338,
Yielded = 2_312,
Canceled = 2_313,
}Expand description
TPM Response Codes (TPM_RC)
Variants§
Implementations§
Source§impl TpmResponseCode
impl TpmResponseCode
pub fn from_u32(value: u32) -> Self
pub fn is_success(&self) -> bool
Trait Implementations§
Source§impl Clone for TpmResponseCode
impl Clone for TpmResponseCode
Source§fn clone(&self) -> TpmResponseCode
fn clone(&self) -> TpmResponseCode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TpmResponseCode
impl Debug for TpmResponseCode
Source§impl PartialEq for TpmResponseCode
impl PartialEq for TpmResponseCode
impl Copy for TpmResponseCode
impl Eq for TpmResponseCode
impl StructuralPartialEq for TpmResponseCode
Auto Trait Implementations§
impl Freeze for TpmResponseCode
impl RefUnwindSafe for TpmResponseCode
impl Send for TpmResponseCode
impl Sync for TpmResponseCode
impl Unpin for TpmResponseCode
impl UnwindSafe for TpmResponseCode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)