Trait Callable

Source
pub trait Callable:
    Send
    + Sync
    + 'static {
    // Required methods
    fn min_args(&self) -> usize;
    fn max_args(&self) -> Option<usize>;
    fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        args: Vec<Gc<Value>>,
        cont: &'life1 Option<Arc<Continuation>>,
    ) -> Pin<Box<dyn Future<Output = Result<ValuesOrPreparedCall, RuntimeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn min_args(&self) -> usize

Source

fn max_args(&self) -> Option<usize>

Source

fn call<'life0, 'life1, 'async_trait>( &'life0 self, args: Vec<Gc<Value>>, cont: &'life1 Option<Arc<Continuation>>, ) -> Pin<Box<dyn Future<Output = Result<ValuesOrPreparedCall, RuntimeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl Callable for Option<Arc<Continuation>>

Source§

fn min_args(&self) -> usize

Source§

fn max_args(&self) -> Option<usize>

Source§

fn call<'life0, 'life1, 'async_trait>( &'life0 self, args: Vec<Gc<Value>>, _calling_cont: &'life1 Self, ) -> Pin<Box<dyn Future<Output = Result<ValuesOrPreparedCall, RuntimeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§