[][src]Module viaduct::backend::ffi::callback_holder

Module that manages get/set of the global fetch callback pointer.

Constants

STATIC_ASSERT_USIZE_EQ_FUNC_SIZE
STATIC_ASSERT_USIZE_EQ_OPT_FUNC_SIZE

Statics

CALLBACK_PTR

Note: We only assign to this once.

Functions

get_callback

Get the function pointer to the FetchCallback. Panics if the callback has not yet been initialized.

set_callback

Set the function pointer to the FetchCallback. Returns false if we did nothing because the callback had already been initialized