1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 16:52:58 +01:00

Update actix-server/src/builder.rs

Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
This commit is contained in:
Rob Ede 2021-11-01 00:36:53 +00:00 committed by GitHub
parent e49fedbfe7
commit f7985c585a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,6 +163,8 @@ impl ServerBuilder {
/// Binds to all network interface addresses that resolve from the `addr` argument. /// Binds to all network interface addresses that resolve from the `addr` argument.
/// Eg. using `localhost` might bind to both IPv4 and IPv6 addresses. Bind to multiple distinct /// Eg. using `localhost` might bind to both IPv4 and IPv6 addresses. Bind to multiple distinct
/// interfaces at the same time by passing a list of socket addresses. /// interfaces at the same time by passing a list of socket addresses.
///
/// This fails only if all addresses fail to bind.
pub fn bind<F, U, InitErr>( pub fn bind<F, U, InitErr>(
mut self, mut self,
name: impl AsRef<str>, name: impl AsRef<str>,