MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / new

Method new

ch_11/mock-server/src/lib.rs:18–22  ·  view source on GitHub ↗
(bind_addr: SocketAddr)

Source from the content-addressed store, hash-verified

16
17impl MockServer {
18 pub fn new(bind_addr: SocketAddr) -> MockServer {
19 MockServer {
20 socket: bind_addr,
21 }
22 }
23
24 async fn check_profanity(
25 _: (),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected