Struct yubihsm::connector::HttpConnector [−][src]
pub struct HttpConnector { /* fields omitted */ }
HTTP(-ish) connector which supports the minimal parts of the protocol required to communicate with the yubihsm-connector service.
Trait Implementations
impl Connector for HttpConnector
[src]
impl Connector for HttpConnector
type Config = HttpConfig
Configuration options for this connector
fn open(config: Self::Config) -> Result<Self, ConnectorError>
[src]
fn open(config: Self::Config) -> Result<Self, ConnectorError>
Open a connection to a yubihsm-connector
fn status(&self) -> Result<Status, ConnectorError>
[src]
fn status(&self) -> Result<Status, ConnectorError>
GET /connector/status returning the result as connector::Status
fn send_command(
&self,
uuid: Uuid,
cmd: Vec<u8>
) -> Result<Vec<u8>, ConnectorError>
[src]
fn send_command(
&self,
uuid: Uuid,
cmd: Vec<u8>
) -> Result<Vec<u8>, ConnectorError>
POST /connector/api with a given command message
Auto Trait Implementations
impl Send for HttpConnector
impl Send for HttpConnector
impl Sync for HttpConnector
impl Sync for HttpConnector