#[repr(transparent)]
pub struct Promised<T>(pub T);
This is supported on crate feature futures
only.
Expand description
Wrapper for futures to convert to JS promises
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
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
F: 'static + FnMut(A, B, D, E, G, H) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), Promised<R>> for Async<F> where
F: 'static + Fn(A, B, D, E, G, H) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
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
F: 'static + FnOnce(A, B, D, E, G, H) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<OnceFn<F>> where
F: 'static + FnOnce(A, B, D, E, G) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<MutFn<F>> where
F: 'static + FnMut(A, B, D, E, G) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<F> where
F: 'static + Fn(A, B, D, E, G) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<MutFn<F>> where
F: 'static + FnMut(A, B, D, E) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<F> where
F: 'static + Fn(A, B, D, E) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<OnceFn<F>> where
F: 'static + FnOnce(A, B, D, E) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<MutFn<F>> where
F: 'static + FnMut(A, B, D) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<OnceFn<F>> where
F: 'static + FnOnce(A, B, D) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<F> where
F: 'static + Fn(A, B, D) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, A, B> AsFunction<'js, (A, B), Promised<R>> for Async<F> where
F: 'static + Fn(A, B) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
A: FromInput<'js>,
B: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
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
F: 'static + Fn(T, A, B, D, E, G, H) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
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
F: 'static + Fn(T, A, B, D, E, G) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, T, A, B, D, E> AsFunction<'js, (T, A, B, D, E), Promised<R>> for Async<Method<F>> where
F: 'static + Fn(T, A, B, D, E) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, T, A, B, D> AsFunction<'js, (T, A, B, D), Promised<R>> for Async<Method<F>> where
F: 'static + Fn(T, A, B, D) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
impl<'js, F, R, T, A, B> AsFunction<'js, (T, A, B), Promised<R>> for Async<Method<F>> where
F: 'static + Fn(T, A, B) -> R + ParallelSend,
R: 'static + Future + ParallelSend,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
<R as Future>::Output: for<'js_> IntoJs<'js_>,
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
The possible range of function arguments
Post-processing the function
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.