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]

Create a new MockHsm

Trait Implementations

impl Debug for MockHsm
[src]

Formats the value using the given formatter. Read more

impl Default for MockHsm
[src]

Returns the "default value" for a type. Read more

impl Serialize for MockHsm
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for MockHsm
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for MockHsm

impl Sync for MockHsm