Struct yubihsm::mockhsm::MockHSM[][src]

pub struct MockHSM { /* fields omitted */ }

Software simulation of a YubiHSM2 intended for testing implemented as a yubihsm::Connector (skipping HTTP transport)

To enable, make sure to build yubihsm.rs with the "mockhsm" feature

Methods

impl MockHSM
[src]

Create a new MockHSM

Create a simulated session with a MockHSM

Trait Implementations

impl Default for MockHSM
[src]

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

impl Connector for MockHSM
[src]

Configuration options for this connector

We don't bother to implement this

GET /connector/status returning the result as connector::Status

POST /connector/api with a given command message and return the response message

Auto Trait Implementations

impl Send for MockHSM

impl Sync for MockHSM