Module ffi

Source

Re-exportsΒ§

pub use bindings::*;

ModulesΒ§

bindings πŸ”’
conversions πŸ”’

StructsΒ§

CallbackData πŸ”’
Callback data for FFI calls, it’s values should not outlive the 'a lifetime.
ConstSlice
Convertable to any ConstSlice_* ffi type (e.g. ConstSlice_u32)
ConstStr πŸ”’
A repr(transparent) wrapper around bindings::ConstStr adding a lifetime
Room

TraitsΒ§

AsRawFFI πŸ”’
Trait for types that can provide a raw FFI representation.
FromFFI πŸ”’
Trait for types that can be parsed from FFI string data.
ToFFI πŸ”’
Trait for types that can be converted to FFI string representation.

FunctionsΒ§

async_ffi_double πŸ”’
The same as async_ffi_single, but for two output values. Should be used for any async executor accepting a callback of type: fn(*mut c_void, ResultFFI, ConstStr, ConstStr)
async_ffi_single πŸ”’
This should be used for any async executor function accepting a callback of type: fn(*mut c_void, ResultFFI, ConstStr) you can access the cb and extra pointers via the CallbackData accepted Note that they should not escape the 'a lifetime of the CallbackData<'a>.
sodot_double_cb πŸ”’ ⚠
Same as sodot_single_cb but used with async_ffi_double for outputing 2 strings.
sodot_single_cb πŸ”’ ⚠
A native function called outside our runtime by the FFI layer, for async results. Used with async_ffi_single

Type AliasesΒ§

CallbackFnDouble πŸ”’
CallbackFnSingle πŸ”’
DoubleSender πŸ”’
SingleSender πŸ”’