[−][src]Enum yubihsm::response::Code
Codes associated with HSM responses
Variants
Success(Code)
Successful response for the given command type
HSM memory error (or generic error)
Initialization error
Network error
Couldn't find connector
Invalid parameters
Wrong length
Buffer is too small
Cryptogram mismatches
Session auth error
MAC mismatch
OK (HSM)
Invalid command (HSM)
Invalid data (HSM)
Invalid session (HSM)
Authentication failure (HSM)
Sessions full (HSM)
Session failed (HSM)
Storage failed (HSM)
Wrong length (HSM)
Invalid permissions (HSM)
Audit log full (HSM)
Object not found (HSM)
Invalid ID (HSM)
Invalid OTP (HSM)
Demo mode (HSM)
Command unexecuted
Generic error
Object already exists
Connector error
Constraint on CA violated
Methods
impl Code
[src]
pub fn from_u8(byte: u8) -> Result<Self, Error>
[src]
Convert an unsigned byte into a Code (if valid)
pub fn to_u8(self) -> u8
[src]
Convert a Code back into its original byte form
pub fn is_success(self) -> bool
[src]
Is this a successful response?
pub fn is_err(self) -> bool
[src]
Is this an error response?
Trait Implementations
impl Clone for Code
[src]
impl Copy for Code
[src]
impl Debug for Code
[src]
impl<'de> Deserialize<'de> for Code
[src]
fn deserialize<D>(deserializer: D) -> Result<Code, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for Code
[src]
impl PartialEq<Code> for Code
[src]
impl Serialize for Code
[src]
impl StructuralEq for Code
[src]
impl StructuralPartialEq for Code
[src]
Auto Trait Implementations
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,