MCPcopy Create free account
hub / github.com/LEXUGE/dcompass / init

Function init

dcompass/src/main.rs:64–72  ·  view source on GitHub ↗
(p: Parsed)

Source from the content-addressed store, hash-verified

62}
63
64async fn init(p: Parsed) -> StdResult<(Router<RuneScript>, SocketAddr, LevelFilter), ScriptError> {
65 Ok((
66 RouterBuilder::new(p.script, p.upstreams)
67 .async_try_into()
68 .await?,
69 p.address,
70 p.verbosity,
71 ))
72}
73
74async fn serve(socket: Arc<UdpSocket>, router: Arc<Router<RuneScript>>, tx: &Sender<()>) {
75 loop {

Callers 5

mainFunction · 0.85
check_defaultFunction · 0.85
check_success_ipcidrFunction · 0.85
check_fail_recursionFunction · 0.85

Calls 1

async_try_intoMethod · 0.45

Tested by 4

check_defaultFunction · 0.68
check_success_ipcidrFunction · 0.68
check_fail_recursionFunction · 0.68