MCPcopy Create free account
hub / github.com/ermak-dev/cloudpub / DefaultPort

Interface DefaultPort

common/src/protocol.rs:20–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20pub trait DefaultPort {
21 fn default_port(&self) -> Option<u16>;
22}
23
24pub fn parse_enum<E: FromStr + Into<i32>>(name: &str) -> Result<i32> {
25 let proto = E::from_str(name).map_err(|_| anyhow!("Invalid enum: {}", name))?;

Callers

nothing calls this directly

Implementers 1

protocol.rscommon/src/protocol.rs

Calls

no outgoing calls

Tested by

no test coverage detected