Struct yubihsm::MockAdapter [−][src]
pub struct MockAdapter(_);
A mocked connection to the MockHsm
Trait Implementations
impl Adapter for MockAdapter
[src]
impl Adapter for MockAdapter
type Config = MockHsm
Configuration options for this adapter
fn open(hsm: &MockHsm) -> Result<Self, AdapterError>
[src]
fn open(hsm: &MockHsm) -> Result<Self, AdapterError>
Create a new adapter with a clone of the MockHsm state
fn healthcheck(&self) -> Result<(), AdapterError>
[src]
fn healthcheck(&self) -> Result<(), AdapterError>
Rust never sleeps
fn serial_number(&self) -> Result<SerialNumber, AdapterError>
[src]
fn serial_number(&self) -> Result<SerialNumber, AdapterError>
Get the serial number for the current YubiHSM2 (if available)
fn send_message(
&self,
_uuid: Uuid,
body: Vec<u8>
) -> Result<Vec<u8>, AdapterError>
[src]
fn send_message(
&self,
_uuid: Uuid,
body: Vec<u8>
) -> Result<Vec<u8>, AdapterError>
Send a message to the MockHsm
Auto Trait Implementations
impl Send for MockAdapter
impl Send for MockAdapter
impl Sync for MockAdapter
impl Sync for MockAdapter