bindable

Crates.iobindable
lib.rsbindable
version0.1.2
sourcesrc
created_at2022-04-19 21:34:56.160944
updated_at2022-05-11 16:40:05.290932
descriptionAn abstraction over an address that a server can bind to: either an IP address for TCP or a path for a Unix socket
homepage
repositoryhttps://github.com/mattfbacon/bindable
max_upload_size
id570653
size17,798
Matt Fellenz (mattfbacon)

documentation

https://docs.rs/bindable

README

Bindable

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.

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.

License

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.

Commit count: 6

cargo fmt