Trait wasmtime::WasmRet

source ·
pub unsafe trait WasmRet { }
Expand description

A trait implemented for types which can be returned from closures passed to Func::wrap and friends.

This trait should not be implemented by user types. This trait may change at any time internally. The types which implement this trait, however, are stable over time.

For more information see Func::wrap

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WasmRet for ()
where (): HostAbi,

source§

impl<A1> WasmRet for (A1,)
where A1: WasmTy, (A1::Abi,): HostAbi,

source§

impl<A1, A2> WasmRet for (A1, A2)
where A1: WasmTy, A2: WasmTy, (A1::Abi, A2::Abi): HostAbi,

source§

impl<A1, A2, A3> WasmRet for (A1, A2, A3)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, (A1::Abi, A2::Abi, A3::Abi): HostAbi,

source§

impl<A1, A2, A3, A4> WasmRet for (A1, A2, A3, A4)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5> WasmRet for (A1, A2, A3, A4, A5)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6> WasmRet for (A1, A2, A3, A4, A5, A6)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7> WasmRet for (A1, A2, A3, A4, A5, A6, A7)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi, A10::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi, A10::Abi, A11::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi, A10::Abi, A11::Abi, A12::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi, A10::Abi, A11::Abi, A12::Abi, A13::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, A14: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi, A10::Abi, A11::Abi, A12::Abi, A13::Abi, A14::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, A14: WasmTy, A15: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi, A10::Abi, A11::Abi, A12::Abi, A13::Abi, A14::Abi, A15::Abi): HostAbi,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> WasmRet for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, A14: WasmTy, A15: WasmTy, A16: WasmTy, (A1::Abi, A2::Abi, A3::Abi, A4::Abi, A5::Abi, A6::Abi, A7::Abi, A8::Abi, A9::Abi, A10::Abi, A11::Abi, A12::Abi, A13::Abi, A14::Abi, A15::Abi, A16::Abi): HostAbi,

Implementors§

source§

impl<T> WasmRet for Result<T>
where T: WasmRet,

source§

impl<T> WasmRet for T
where T: WasmTy,