| Crates.io | tls-api-stub-2 |
| lib.rs | tls-api-stub-2 |
| version | 0.11.0 |
| created_at | 2024-05-07 20:12:05.048301+00 |
| updated_at | 2024-05-07 20:12:05.048301+00 |
| description | TLS API implementation that returns error on any operation |
| homepage | |
| repository | https://github.com/edgedb/rust-tls-api/ |
| max_upload_size | |
| id | 1232845 |
| size | 9,435 |
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);