[][src]Trait yubihsm::connector::Connection

pub trait Connection: Send + Sync {
    fn send_message(
        &self,
        uuid: Uuid,
        msg: Message
    ) -> Result<Message, ConnectionError>; }

Connections to the HSM

Required methods

fn send_message(
    &self,
    uuid: Uuid,
    msg: Message
) -> Result<Message, ConnectionError>

Send a command message to the HSM, then read and return the response

Loading content...

Implementors

impl Connection for UsbConnection[src]

fn send_message(
    &self,
    _uuid: Uuid,
    cmd: Message
) -> Result<Message, ConnectionError>
[src]

Send a command to the YubiHSM and read its response

Loading content...