Skip to main content

bind_declared

Function bind_declared 

Source
pub fn bind_declared(
    host: &str,
    port: u16,
    source: &str,
) -> Result<Bound, Error>
Expand description

Bind the address a deployment object declared. The accidental-bind warning does not fire here and is not suppressed either: it asks “did you mean this”, and source is the answer — the canonical object that said so, named in the log so the operator can read which file decided the address. A hosted process that bound loopback would be unreachable inside its own machine, which is why this path exists at all.