Trait rquickjs::AsFunction [−][src]
The trait to wrap rust function to JS directly
Required methods
pub fn num_args() -> Range<usize>
[src]
The possible range of function arguments
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
Call as JS function
Provided methods
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), Error>
[src]
Post-processing the function
Implementations on Foreign Types
impl<'js, F1, A1, R1, F2, A2, R2, F3, A3, R3, F4, A4, R4> AsFunction<'js, (A1, A2, A3, A4), (R1, R2, R3, R4)> for (F1, F2, F3, F4) where
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
F4: AsFunction<'js, A4, R4> + ParallelSend + 'static,
[src]
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
F4: AsFunction<'js, A4, R4> + ParallelSend + 'static,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
pub fn post(ctx: Ctx<'js_>, func: &Function<'js_>) -> Result<(), Error>
[src]
impl<'js, F1, A1, R1, F2, A2, R2> AsFunction<'js, (A1, A2), (R1, R2)> for (F1, F2) where
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
[src]
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
pub fn post(ctx: Ctx<'js_>, func: &Function<'js_>) -> Result<(), Error>
[src]
impl<'js, F1, A1, R1, F2, A2, R2, F3, A3, R3> AsFunction<'js, (A1, A2, A3), (R1, R2, R3)> for (F1, F2, F3) where
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
[src]
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
pub fn post(ctx: Ctx<'js_>, func: &Function<'js_>) -> Result<(), Error>
[src]
impl<'js, F1, A1, R1, F2, A2, R2, F3, A3, R3, F4, A4, R4, F5, A5, R5, F6, A6, R6> AsFunction<'js, (A1, A2, A3, A4, A5, A6), (R1, R2, R3, R4, R5, R6)> for (F1, F2, F3, F4, F5, F6) where
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
F4: AsFunction<'js, A4, R4> + ParallelSend + 'static,
F5: AsFunction<'js, A5, R5> + ParallelSend + 'static,
F6: AsFunction<'js, A6, R6> + ParallelSend + 'static,
[src]
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
F4: AsFunction<'js, A4, R4> + ParallelSend + 'static,
F5: AsFunction<'js, A5, R5> + ParallelSend + 'static,
F6: AsFunction<'js, A6, R6> + ParallelSend + 'static,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
pub fn post(ctx: Ctx<'js_>, func: &Function<'js_>) -> Result<(), Error>
[src]
impl<'js, F1, A1, R1, F2, A2, R2, F3, A3, R3, F4, A4, R4, F5, A5, R5> AsFunction<'js, (A1, A2, A3, A4, A5), (R1, R2, R3, R4, R5)> for (F1, F2, F3, F4, F5) where
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
F4: AsFunction<'js, A4, R4> + ParallelSend + 'static,
F5: AsFunction<'js, A5, R5> + ParallelSend + 'static,
[src]
F1: AsFunction<'js, A1, R1> + ParallelSend + 'static,
F2: AsFunction<'js, A2, R2> + ParallelSend + 'static,
F3: AsFunction<'js, A3, R3> + ParallelSend + 'static,
F4: AsFunction<'js, A4, R4> + ParallelSend + 'static,
F5: AsFunction<'js, A5, R5> + ParallelSend + 'static,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
pub fn post(ctx: Ctx<'js_>, func: &Function<'js_>) -> Result<(), Error>
[src]
Implementors
impl<'js, C, F, A, R> AsFunction<'js, A, R> for Constructor<C, F> where
C: ClassDef + ParallelSend + 'static,
F: AsFunction<'js, A, R> + ParallelSend + 'static,
[src]
C: ClassDef + ParallelSend + 'static,
F: AsFunction<'js, A, R> + ParallelSend + 'static,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
pub fn post(ctx: Ctx<'js_>, func: &Function<'js_>) -> Result<(), Error>
[src]
impl<'js, F, R> AsFunction<'js, (), Promised<R>> for Async<MutFn<F>> where
F: FnMut() -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
F: FnMut() -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R> AsFunction<'js, (), Promised<R>> for Async<OnceFn<F>> where
F: FnOnce() -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
F: FnOnce() -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R> AsFunction<'js, (), Promised<R>> for Async<F> where
F: Fn() -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
F: Fn() -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R> AsFunction<'js, (), R> for MutFn<F> where
F: FnMut() -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
F: FnMut() -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R> AsFunction<'js, (), R> for OnceFn<F> where
F: FnOnce() -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
F: FnOnce() -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R> AsFunction<'js, (), R> for F where
F: Fn() -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
F: Fn() -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A> AsFunction<'js, (A,), Promised<R>> for Async<MutFn<F>> where
A: FromInput<'js>,
F: FnMut(A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
A: FromInput<'js>,
F: FnMut(A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A> AsFunction<'js, (A,), Promised<R>> for Async<OnceFn<F>> where
A: FromInput<'js>,
F: FnOnce(A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
A: FromInput<'js>,
F: FnOnce(A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A> AsFunction<'js, (A,), Promised<R>> for Async<F> where
A: FromInput<'js>,
F: Fn(A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
A: FromInput<'js>,
F: Fn(A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A> AsFunction<'js, (A,), R> for MutFn<F> where
A: FromInput<'js>,
F: FnMut(A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
A: FromInput<'js>,
F: FnMut(A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A> AsFunction<'js, (A,), R> for OnceFn<F> where
A: FromInput<'js>,
F: FnOnce(A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
A: FromInput<'js>,
F: FnOnce(A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A> AsFunction<'js, (A,), R> for F where
A: FromInput<'js>,
F: Fn(A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
A: FromInput<'js>,
F: Fn(A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B> AsFunction<'js, (A, B), Promised<R>> for Async<MutFn<F>> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B> AsFunction<'js, (A, B), Promised<R>> for Async<OnceFn<F>> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B> AsFunction<'js, (A, B), Promised<R>> for Async<F> where
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B> AsFunction<'js, (A, B), R> for MutFn<F> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B> AsFunction<'js, (A, B), R> for OnceFn<F> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B> AsFunction<'js, (A, B), R> for F where
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<MutFn<F>> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<OnceFn<F>> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<F> where
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), R> for MutFn<F> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), R> for OnceFn<F> where
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), R> for F where
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<MutFn<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<OnceFn<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<F> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), R> for MutFn<F> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), R> for OnceFn<F> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), R> for F where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<MutFn<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<OnceFn<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<F> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), R> for MutFn<F> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), R> for OnceFn<F> where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), R> for F where
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), Promised<R>> for Async<MutFn<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), Promised<R>> for Async<OnceFn<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), Promised<R>> for Async<F> where
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), R> for MutFn<F> where
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnMut(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), R> for OnceFn<F> where
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: FnOnce(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), R> for F where
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T> AsFunction<'js, (T,), Promised<R>> for Async<Method<F>> where
T: FromJs<'js>,
F: Fn(T) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
T: FromJs<'js>,
F: Fn(T) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T> AsFunction<'js, (T,), R> for Method<F> where
T: FromJs<'js>,
F: Fn(T) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
T: FromJs<'js>,
F: Fn(T) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A> AsFunction<'js, (T, A), Promised<R>> for Async<Method<F>> where
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A> AsFunction<'js, (T, A), R> for Method<F> where
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B> AsFunction<'js, (T, A, B), Promised<R>> for Async<Method<F>> where
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B> AsFunction<'js, (T, A, B), R> for Method<F> where
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
[src]
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D> AsFunction<'js, (T, A, B, D), Promised<R>> for Async<Method<F>> where
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D> AsFunction<'js, (T, A, B, D), R> for Method<F> where
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D, E> AsFunction<'js, (T, A, B, D, E), Promised<R>> for Async<Method<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D, E> AsFunction<'js, (T, A, B, D, E), R> for Method<F> where
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D, E, G> AsFunction<'js, (T, A, B, D, E, G), Promised<R>> for Async<Method<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D, E, G> AsFunction<'js, (T, A, B, D, E, G), R> for Method<F> where
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D, E, G, H> AsFunction<'js, (T, A, B, D, E, G, H), Promised<R>> for Async<Method<F>> where
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
G: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
pub fn num_args() -> Range<usize>
[src]
pub fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>
[src]
impl<'js, F, R, T, A, B, D, E, G, H> AsFunction<'js, (T, A, B, D, E, G, H), R> for Method<F> where
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,
[src]
E: FromInput<'js>,
B: FromInput<'js>,
T: FromJs<'js>,
H: FromInput<'js>,
A: FromInput<'js>,
F: Fn(T, A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
G: FromInput<'js>,
D: FromInput<'js>,