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

Class NativeScriptBuilder

droute/src/router/script/native.rs:61–67  ·  view source on GitHub ↗

The builder for `NativeScript`

Source from the content-addressed store, hash-verified

59
60/// The builder for `NativeScript`
61pub struct NativeScriptBuilder<F, T>
62where
63 F: Fn(Upstreams, Message<Bytes>, Option<QueryContext>) -> T + Send + Sync,
64 T: std::future::Future<Output = Result<Message<Bytes>>> + Send,
65{
66 script: F,
67}
68
69impl<F, T> NativeScriptBuilder<F, T>
70where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected