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

Method fmt

crates/openshell-core/src/forward.rs:599–605  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

597
598impl std::fmt::Display for ForwardSpec {
599 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
600 if self.bind_addr == Self::DEFAULT_BIND_ADDR {
601 write!(f, "{}", self.port)
602 } else {
603 write!(f, "{}:{}", self.bind_addr, self.port)
604 }
605 }
606}
607
608// ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected