Trait yubihsm::connector::Connection [−][src]
pub trait Connection: Send + Sync { fn send_message(
&self,
uuid: Uuid,
msg: Vec<u8>
) -> Result<Vec<u8>, ConnectionError>; }
Connections to the HSM
Required Methods
fn send_message(
&self,
uuid: Uuid,
msg: Vec<u8>
) -> Result<Vec<u8>, ConnectionError>
&self,
uuid: Uuid,
msg: Vec<u8>
) -> Result<Vec<u8>, ConnectionError>
Send a command message to the HSM, then read and return the response
Implementors
impl Connection for HttpConnection
impl Connection for UsbConnection
impl Connection for MockConnection