Module ffi_utils::test_utils [−][src]
Test utilities.
Structs
SendWrapper |
Unsafe wrapper for passing non-Send types through mpsc channels. Use with caution! |
UserData |
User data wrapper. |
Functions
call_0 |
Call a FFI function and block until its callback gets called.
Use this if the callback accepts no arguments in addition to |
call_1⚠ |
Call an FFI function and block until its callback gets called, then return
the argument which were passed to that callback.
Use this if the callback accepts one argument in addition to |
call_2⚠ |
Call a FFI function and block until its callback gets called, then return
the argument which were passed to that callback.
Use this if the callback accepts two arguments in addition to |
call_0_with_custom |
Call a FFI function and block until its callback gets called.
Use this if the callback accepts no arguments in addition to |
call_1_with_custom |
Call an FFI function and block until its callback gets called, then return
the argument which were passed to that callback.
Use this if the callback accepts one argument in addition to |
call_2_with_custom⚠ |
Call a FFI function and block until its callback gets called, then return
the argument which were passed to that callback.
Use this if the callback accepts two arguments in addition to |
call_vec⚠ |
Call a FFI function and block until its callback gets called, then copy
the array argument which was passed to |
call_vec_u8⚠ |
Call a FFI function and block until its callback gets called, then copy
the byte array argument which was passed to |
call_vec_u8_with_custom⚠ |
Call a FFI function and block until its callback gets called, then copy
the byte array argument which was passed to |
call_vec_with_custom⚠ |
Call a FFI function and block until its callback gets called, then copy
the array argument which was passed to |
send_via_user_data⚠ |
Send through a |
send_via_user_data_custom⚠ |
Send through a |
sender_as_user_data |
Convert a |
user_data_as_void |
Convert a |