[−][src]Trait yubihsm::connector::Connector
Connectors which create Connection
objects to the HSM
Required methods
fn connect(&self) -> Result<Box<dyn Connection>, ConnectionError>
Open a connection to the HSM using this Connector
fn healthcheck(&self) -> Result<(), ConnectionError>
Ensure the connection to the HSM is healthy, or return an error
fn serial_number(&self) -> Result<SerialNumber, ConnectionError>
Get the serial number for the HSM (if available)
Implementors
impl Connector for HttpConnector
[src]
fn connect(&self) -> Result<Box<dyn Connection>, ConnectionError>
[src]
Open a connection to yubihsm-connector
fn healthcheck(&self) -> Result<(), ConnectionError>
[src]
Check that yubihsm-connector
is available and returning status OK
fn serial_number(&self) -> Result<SerialNumber, ConnectionError>
[src]
Get the serial number for the current YubiHSM2 (if available)
impl Connector for UsbConnector
[src]
fn connect(&self) -> Result<Box<dyn Connection>, ConnectionError>
[src]
Open a connection to yubihsm-connector
fn healthcheck(&self) -> Result<(), ConnectionError>
[src]
Check that the connection to the HSM is healthy
fn serial_number(&self) -> Result<SerialNumber, ConnectionError>
[src]
Get the serial number for the current YubiHSM2 (if available)
impl Connector for MockHsm
[src]
fn connect(&self) -> Result<Box<dyn Connection>, ConnectionError>
[src]
Create a new connection with a clone of the MockHsm state
fn healthcheck(&self) -> Result<(), ConnectionError>
[src]
Rust never sleeps
fn serial_number(&self) -> Result<SerialNumber, ConnectionError>
[src]
Get the serial number for the current YubiHSM2 (if available)