Crates.io | bindable |
lib.rs | bindable |
version | 0.1.2 |
source | src |
created_at | 2022-04-19 21:34:56.160944 |
updated_at | 2022-05-11 16:40:05.290932 |
description | An abstraction over an address that a server can bind to: either an IP address for TCP or a path for a Unix socket |
homepage | |
repository | https://github.com/mattfbacon/bindable |
max_upload_size | |
id | 570653 |
size | 17,798 |
This crate provides the BindableAddr
type, which is an abstraction over an address that a server can bind to: either an IP address for TCP or a path for a Unix socket.
There is also a BindBindableExt
trait, that is used for server integrations.
The crate also includes some integrations with other common crates, gated by features.
with-serde
(enabled by default)Implements Serialize
and Deserialize
for BindableAddr
. The serialized representation is a string with an optional (defaults to TCP) protocol prefix, such as tcp://
or unix://
.
with-actix
Implements BindBindableExt
for HttpServer
.
Licensed under either of Apache License, Version 2.0 or MIT license, at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.