Struct yubihsm::mockhsm::MockHsm[][src]

pub struct MockHsm(_);

Software simulation of a YubiHSM2 intended for testing implemented as a yubihsm::Connection.

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 Clone for MockHsm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MockHsm
[src]

Formats the value using the given formatter. Read more

impl Connector for MockHsm
[src]

Create a new connection with a clone of the MockHsm state

Rust never sleeps

Get the serial number for the current YubiHSM2 (if available)

impl Default for MockHsm
[src]

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

impl Into<Box<Connector>> for MockHsm
[src]

Important traits for Box<R>

Performs the conversion.

Auto Trait Implementations

impl Send for MockHsm

impl Sync for MockHsm