MCPcopy Create free account
hub / github.com/actix/examples / ImplNetwork

Interface ImplNetwork

json/jsonrpc/src/main.rs:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85pub trait ImplNetwork {
86 fn ping(&self) -> String;
87
88 #[allow(clippy::type_complexity)]
89 fn wait(&self, d: u64) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn error::Error>>>>>;
90
91 fn get(&self) -> u32;
92
93 fn inc(&mut self);
94}
95
96pub struct ObjNetwork {
97 c: u32,

Callers

nothing calls this directly

Implementers 1

main.rsjson/jsonrpc/src/main.rs

Calls

no outgoing calls

Tested by

no test coverage detected