MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-core/src/forward.rs:542–547  ·  view source on GitHub ↗

Create a new `ForwardSpec` with the default bind address.

(port: u16)

Source from the content-addressed store, hash-verified

540
541 /// Create a new `ForwardSpec` with the default bind address.
542 pub fn new(port: u16) -> Self {
543 Self {
544 bind_addr: Self::DEFAULT_BIND_ADDR.to_string(),
545 port,
546 }
547 }
548
549 /// Parse a `[bind_address:]port` string.
550 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected