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

Method from_domain

crates/openshell-ocsf/src/objects/endpoint.rs:29–35  ·  view source on GitHub ↗
(name: &str, port: u16)

Source from the content-addressed store, hash-verified

27 /// Create an endpoint from a domain name and port.
28 #[must_use]
29 pub fn from_domain(name: &str, port: u16) -> Self {
30 Self {
31 domain: Some(name.to_string()),
32 ip: None,
33 port: Some(port),
34 }
35 }
36
37 /// Create an endpoint from an IP address and port.
38 #[must_use]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected