HostFunction

Trait HostFunction 

Source
pub trait HostFunction<A, O>: Send + Sync {
    // Required method
    fn call(&self, args: Vec<Value>) -> Result<Value>;
}

Required Methods§

Source

fn call(&self, args: Vec<Value>) -> Result<Value>

Implementors§

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, A10: FromValue, A11: FromValue, A12: FromValue, A13: FromValue, A14: FromValue, A15: FromValue, A16: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, A10: FromValue, A11: FromValue, A12: FromValue, A13: FromValue, A14: FromValue, A15: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, A10: FromValue, A11: FromValue, A12: FromValue, A13: FromValue, A14: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, A10: FromValue, A11: FromValue, A12: FromValue, A13: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, A10: FromValue, A11: FromValue, A12: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, A10: FromValue, A11: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, A10: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, A9: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7, A8), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, A8: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7, A8) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, O, F> HostFunction<(A1, A2, A3, A4, A5, A6, A7), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, A7: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6, A7) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, O, F> HostFunction<(A1, A2, A3, A4, A5, A6), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, A6: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5, A6) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, A5, O, F> HostFunction<(A1, A2, A3, A4, A5), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, A5: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4, A5) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, A4, O, F> HostFunction<(A1, A2, A3, A4), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, A4: FromValue, O: Serialize, F: Fn(A1, A2, A3, A4) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, A3, O, F> HostFunction<(A1, A2, A3), O> for F
where A1: FromValue, A2: FromValue, A3: FromValue, O: Serialize, F: Fn(A1, A2, A3) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, A2, O, F> HostFunction<(A1, A2), O> for F
where A1: FromValue, A2: FromValue, O: Serialize, F: Fn(A1, A2) -> Result<O> + Send + Sync + 'static,

Source§

impl<A1, O, F> HostFunction<(A1,), O> for F
where A1: FromValue, O: Serialize, F: Fn(A1) -> Result<O> + Send + Sync + 'static,

Source§

impl<O, F> HostFunction<(), O> for F
where O: Serialize, F: Fn() -> Result<O> + Send + Sync + 'static,