pub enum Tss2ResponseCode {
Success,
FormatZero(FormatZeroResponseCode),
FormatOne(FormatOneResponseCode),
}
Expand description
Rust native representation of the TSS2 response codes as defined in the spec.
Variants§
Implementations§
source§impl Tss2ResponseCode
impl Tss2ResponseCode
sourcepub fn is_success(self) -> bool
pub fn is_success(self) -> bool
Check whether the response code is successful
sourcepub fn kind(self) -> Option<Tss2ResponseCodeKind>
pub fn kind(self) -> Option<Tss2ResponseCodeKind>
Get the error code as an enum variant.
Trait Implementations§
source§impl Clone for Tss2ResponseCode
impl Clone for Tss2ResponseCode
source§fn clone(&self) -> Tss2ResponseCode
fn clone(&self) -> Tss2ResponseCode
Returns a copy 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 Tss2ResponseCode
impl Debug for Tss2ResponseCode
source§impl Display for Tss2ResponseCode
impl Display for Tss2ResponseCode
source§impl Error for Tss2ResponseCode
impl Error for Tss2ResponseCode
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<u32> for Tss2ResponseCode
impl From<u32> for Tss2ResponseCode
source§impl PartialEq for Tss2ResponseCode
impl PartialEq for Tss2ResponseCode
source§fn eq(&self, other: &Tss2ResponseCode) -> bool
fn eq(&self, other: &Tss2ResponseCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Tss2ResponseCode
impl Eq for Tss2ResponseCode
impl StructuralPartialEq for Tss2ResponseCode
Auto Trait Implementations§
impl Freeze for Tss2ResponseCode
impl RefUnwindSafe for Tss2ResponseCode
impl Send for Tss2ResponseCode
impl Sync for Tss2ResponseCode
impl Unpin for Tss2ResponseCode
impl UnwindSafe for Tss2ResponseCode
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