pub trait Callable {
    // Required methods
    fn arguments(&self) -> Vec<&Argument>;
    fn return_type(&self) -> Option<Type>;
    fn throws_type(&self) -> Option<Type>;
    fn is_async(&self) -> bool;

    // Provided methods
    fn takes_self(&self) -> bool { ... }
    fn result_type(&self) -> ResultType { ... }
    fn ffi_rust_future_poll(&self, ci: &ComponentInterface) -> String { ... }
    fn ffi_rust_future_cancel(&self, ci: &ComponentInterface) -> String { ... }
    fn ffi_rust_future_complete(&self, ci: &ComponentInterface) -> String { ... }
    fn ffi_rust_future_free(&self, ci: &ComponentInterface) -> String { ... }
}
Expand description

Implemented by function-like types (Function, Method, Constructor)

Required Methods§

Provided Methods§

Implementations on Foreign Types§

source§

impl<T: Callable> Callable for &T

Implementors§