tls-api-stub

Crates.iotls-api-stub
lib.rstls-api-stub
version0.9.0
sourcesrc
created_at2017-06-03 08:41:31.702989
updated_at2022-04-28 16:25:58.390789
descriptionTLS API implementation that returns error on any operation
homepage
repositoryhttps://github.com/stepancheg/rust-tls-api/
max_upload_size
id17452
size9,453
Aljaž Mur Eržen (aljazerzen)

documentation

README

GitHub Workflow Status License crates.io

tls-api-stub

Stub implementation of tls-api. All operations return an error.

Useful when you need an implementation of type like TlsConnector, but you do not intend to use it.

E. g.

fn connect<C : tls_api::TlsConnector>(host: &str, use_tls: bool) { ... }

So if the function is to be used without TLS, it can be called with stub implementation:

connect::<tls_api_stub::TlsConnector>("database", false);
Commit count: 377

cargo fmt