MCPcopy Index your code
hub / github.com/endbasic/endbasic / Callable

Interface Callable

core/src/callable.rs:1054–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052/// that's the type used throughout the execution engine.
1053#[async_trait(?Send)]
1054pub trait Callable {
1055 /// Returns the metadata for this function.
1056 ///
1057 /// The return value takes the form of a reference to force the callable to store the metadata
1058 /// as a struct field so that calls to this function are guaranteed to be cheap.
1059 fn metadata(&self) -> Rc<CallableMetadata>;
1060
1061 /// Executes the callable if it is synchronous.
1062 fn exec(&self, _scope: Scope<'_>) -> CallResult<()> {
1063 unimplemented!("Must be implemented for !is_async callables")
1064 }
1065
1066 /// Executes the callable if it is asynchronous.
1067 async fn async_exec(&self, _scope: Scope<'_>) -> CallResult<()> {
1068 unimplemented!("Must be implemented for is_async callables")
1069 }
1070}

Callers 10

parse_functionMethod · 0.85
parse_subMethod · 0.85
test_function_emptyFunction · 0.85
test_function_one_paramFunction · 0.85
test_sub_emptyFunction · 0.85
test_sub_some_contentFunction · 0.85
test_sub_one_paramFunction · 0.85
test_sub_multiple_paramsFunction · 0.85

Implementers 15

cmds.rsclient/src/cmds.rs
testutils.rscore/src/testutils.rs
mod.rscore/src/vm/mod.rs
sum_doubles_fn.rscore/tests/testutils/callables/sum_dou
async_increment_fn.rscore/tests/testutils/callables/async_i
sum_integers_fn.rscore/tests/testutils/callables/sum_int
out_typed_integers_cmd.rscore/tests/testutils/callables/out_typ
meaning_of_life_fn.rscore/tests/testutils/callables/meaning
out_sep_end_cmd.rscore/tests/testutils/callables/out_sep
concat_fn.rscore/tests/testutils/callables/concat_
define_and_change_args_cmd.rscore/tests/testutils/callables/define_
sum_mixed_fn.rscore/tests/testutils/callables/sum_mix

Calls

no outgoing calls

Tested by

no test coverage detected