pub enum HashstickError {
InvalidLength,
EmptyHashstickBuffer,
InvalidReservedField,
UnknownError,
}Expand description
Errors which may be encountered when handling Version Loaded Endorsement Keys (VLEK) Hashsticks.
Variants§
InvalidLength
Hashstick length does not match what was specified in the buffer.
EmptyHashstickBuffer
No hashstick was provided
InvalidReservedField
Invalid reserved field in the hashstick.
UnknownError
Unknown Error.
Trait Implementations§
Source§impl Debug for HashstickError
impl Debug for HashstickError
Source§impl Display for HashstickError
impl Display for HashstickError
Source§impl Error for HashstickError
impl Error for HashstickError
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<HashstickError> for UserApiError
impl From<HashstickError> for UserApiError
Source§fn from(value: HashstickError) -> Self
fn from(value: HashstickError) -> Self
Converts to this type from the input type.
Source§impl Ord for HashstickError
impl Ord for HashstickError
Source§fn cmp(&self, other: &HashstickError) -> Ordering
fn cmp(&self, other: &HashstickError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HashstickError
impl PartialEq for HashstickError
Source§fn eq(&self, other: &HashstickError) -> bool
fn eq(&self, other: &HashstickError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HashstickError
impl PartialOrd for HashstickError
impl Eq for HashstickError
impl StructuralPartialEq for HashstickError
Auto Trait Implementations§
impl Freeze for HashstickError
impl RefUnwindSafe for HashstickError
impl Send for HashstickError
impl Sync for HashstickError
impl Unpin for HashstickError
impl UnsafeUnpin for HashstickError
impl UnwindSafe for HashstickError
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