Struct yubihsm::mockhsm::MockHsm [−][src]
pub struct MockHsm(_);
Software simulation of a YubiHSM2
intended for testing
implemented as a yubihsm::Adapter
.
This only implements a subset of the YubiHSM's functionality, and does not enforce access control. It's recommended to also test live against a real device.
To enable, make sure to build yubihsm.rs with the mockhsm
cargo feature
Methods
impl MockHsm
[src]
impl MockHsm
Trait Implementations
impl Debug for MockHsm
[src]
impl Debug for MockHsm
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for MockHsm
[src]
impl Default for MockHsm
impl Serialize for MockHsm
[src]
impl Serialize for MockHsm
fn serialize<S: Serializer>(&self, _serializer: S) -> Result<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, _serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for MockHsm
[src]
impl<'de> Deserialize<'de> for MockHsm
fn deserialize<D: Deserializer<'de>>(
_deserializer: D
) -> Result<MockHsm, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
_deserializer: D
) -> Result<MockHsm, D::Error>
Deserialize this value from the given Serde deserializer. Read more