Trait runestick::module::AsyncInstFn [−][src]
Trait used to provide the async_inst_fn function.
Associated Types
Loading content...Required methods
fn args() -> usize
[src]
Get the number of arguments.
fn instance_type_hash() -> Hash
[src]
Access the value type of the instance.
fn instance_type_info() -> TypeInfo
[src]
Access the value type of the instance.
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
Perform the vm call.
Implementors
impl<Func, Return, Instance> AsyncInstFn<(Instance,)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
A: UnsafeFromValue,
B: UnsafeFromValue,
C: UnsafeFromValue,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
A: UnsafeFromValue,
B: UnsafeFromValue,
C: UnsafeFromValue,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
B: UnsafeFromValue,
C: UnsafeFromValue,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
B: UnsafeFromValue,
C: UnsafeFromValue,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, C, D, E, F, G, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
C: UnsafeFromValue,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
C: UnsafeFromValue,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, D, E, F, G, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
D: UnsafeFromValue,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, E, F, G, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, E, F, G, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, E, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
E: UnsafeFromValue,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, F, G, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, F, G, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, F, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
F: UnsafeFromValue,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, G, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, G, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, G, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
G: UnsafeFromValue,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, H, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, H, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, H, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
H: UnsafeFromValue,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, I, J, K, L, M, N, O, P> AsyncInstFn<(Instance, I, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, I, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
I: UnsafeFromValue,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, J, K, L, M, N, O, P> AsyncInstFn<(Instance, J, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, J, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
J: UnsafeFromValue,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, K, L, M, N, O, P> AsyncInstFn<(Instance, K, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, K, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
K: UnsafeFromValue,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, L, M, N, O, P> AsyncInstFn<(Instance, L, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, L, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
L: UnsafeFromValue,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, M, N, O, P> AsyncInstFn<(Instance, M, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, M, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
M: UnsafeFromValue,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, N, O, P> AsyncInstFn<(Instance, N, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, N, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
N: UnsafeFromValue,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, O, P> AsyncInstFn<(Instance, O, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
O: UnsafeFromValue,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, O, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
O: UnsafeFromValue,
P: UnsafeFromValue,
type Instance = Instance
type Return = Return
fn args() -> usize
[src]
fn instance_type_hash() -> Hash
[src]
fn instance_type_info() -> TypeInfo
[src]
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>
[src]
impl<Func, Return, Instance, P> AsyncInstFn<(Instance, P)> for Func where
Func: 'static + Copy + Send + Sync + Fn(Instance, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
P: UnsafeFromValue,
[src]
Func: 'static + Copy + Send + Sync + Fn(Instance, P) -> Return,
Return: Future,
Return::Output: ToValue,
Instance: UnsafeFromValue + TypeOf,
P: UnsafeFromValue,