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:
parent
e49fedbfe7
commit
f7985c585a
@ -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>,
|
||||||
|
Loading…
Reference in New Issue
Block a user