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

Method from_ip

crates/openshell-ocsf/src/objects/endpoint.rs:39–45  ·  view source on GitHub ↗
(addr: IpAddr, port: u16)

Source from the content-addressed store, hash-verified

37 /// Create an endpoint from an IP address and port.
38 #[must_use]
39 pub fn from_ip(addr: IpAddr, port: u16) -> Self {
40 Self {
41 domain: None,
42 ip: Some(addr.to_string()),
43 port: Some(port),
44 }
45 }
46
47 /// Create an endpoint from an IP string and port.
48 #[must_use]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected