Struct rquickjs::Promised [−][src]
This is supported on crate feature
futures only.Wrapper for futures to convert to JS promises
Trait Implementations
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]
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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), 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]
pub fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), Error>[src]
impl<T> From<T> for Promised<T>[src]
impl<'js, T> IntoJs<'js> for Promised<T> where
T: Future + ParallelSend + 'static,
<T as Future>::Output: for<'js_> IntoJs<'js_>,
<T as Future>::Output: 'static, [src]
T: Future + ParallelSend + 'static,
<T as Future>::Output: for<'js_> IntoJs<'js_>,
<T as Future>::Output: 'static,
Auto Trait Implementations
impl<T> RefUnwindSafe for Promised<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for Promised<T> where
T: Send, [src]
T: Send,
impl<T> Sync for Promised<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for Promised<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for Promised<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<'js, T> AsProperty<'js, T> for T where
T: IntoJs<'js>, [src]
T: IntoJs<'js>,
pub fn config(
self,
ctx: Ctx<'js>
) -> Result<(i32, Value<'js>, Value<'js>, Value<'js>), Error>[src]
self,
ctx: Ctx<'js>
) -> Result<(i32, Value<'js>, Value<'js>, Value<'js>), Error>
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<!> for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ParallelSend for T where
T: Send, [src]
T: Send,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,