tls-api-stub-2

Crates.iotls-api-stub-2
lib.rstls-api-stub-2
version0.11.0
sourcesrc
created_at2024-05-07 20:12:05.048301
updated_at2024-05-07 20:12:05.048301
descriptionTLS API implementation that returns error on any operation
homepage
repositoryhttps://github.com/edgedb/rust-tls-api/
max_upload_size
id1232845
size9,435
Aljaž Mur Eržen (aljazerzen)

documentation

README

tls-api-stub-2

This is a fork of tls-api-stub with updated dependencies.

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: 402

cargo fmt