Pure Rust client for YubiHSM2 devices with support for HTTP and
USB-based access to the device. Supports most HSM functionality
including ECDSA, Ed25519, HMAC, and RSA.
//! Trait shared across all methods for connecting to the YubiHSM2
usecrate::connector;useuuid::Uuid;/// Connections to the HSM
pubtraitConnection: Send + Sync {/// Send a command message to the HSM, then read and return the response
fnsend_message(&self,
uuid: Uuid,
msg:connector::Message,
)->Result<connector::Message, connector::Error>;}