#[repr(C)]pub struct TemplatizerCallbacks {Show 32 fields
pub malloc: extern "C" fn(data: *mut Context, size: usize) -> *mut u8,
pub free: extern "C" fn(data: *mut Context, ptr: *mut u8),
pub strndup: extern "C" fn(data: *mut Context, ptr: *const u8, length: usize) -> *mut u8,
pub set_compression: extern "C" fn(data: *mut Context, opt: isize),
pub set_keep_alive: extern "C" fn(data: *mut Context),
pub send_header: extern "C" fn(data: *mut Context, key: *const u8, value: *const u8),
pub send_default_headers: extern "C" fn(data: *mut Context),
pub set_output_format: extern "C" fn(data: *mut Context, fmt: isize),
pub add_filler_text: extern "C" fn(data: *mut Context, text: *const u8) -> isize,
pub add_control_flow: extern "C" fn(data: *mut Context, b: isize) -> isize,
pub register_element_tag: extern "C" fn(ctx: *mut Context, s: *const u8, cb: fn()),
pub new_if_node: extern "C" fn(ctx: *mut Context) -> isize,
pub new_swhile_node: extern "C" fn(ctx: *mut Context) -> isize,
pub new_ewhile_node: extern "C" fn(ctx: *mut Context) -> isize,
pub new_call_special_node: extern "C" fn(ctx: *mut Context, symbol: *const u8) -> isize,
pub exit: extern "C" fn(ctx: *mut Context, status: isize),
pub get_num_plugin_parameters: extern "C" fn(ctx: *mut Context) -> isize,
pub get_plugin_parameter: extern "C" fn(ctx: *mut Context, index: isize, param_ptr: *mut *const u8, param_length: *mut usize) -> isize,
pub storage_open: extern "C" fn(path: *const u8),
pub storage_begin_transaction: extern "C" fn(txn: *mut *mut Txn),
pub storage_commit_transaction: extern "C" fn(txn: *mut Txn),
pub storage_open_database: extern "C" fn(txn: *mut Txn, dbi: *const isize),
pub storage_close_database: extern "C" fn(dbi: isize) -> isize,
pub storage_get_string: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut *mut u8) -> isize,
pub storage_get_integer: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut isize) -> isize,
pub sql_connect: extern "C" fn(connection: *mut Sql, s: *const u8) -> isize,
pub sql_disconnect: extern "C" fn(connection: *mut Sql) -> isize,
pub sql_execute: extern "C" fn(connection: *mut Sql) -> isize,
pub sql_prepare: extern "C" fn() -> isize,
pub vm_define: extern "C" fn() -> isize,
pub vm_start: extern "C" fn(name: *const u8) -> isize,
pub vm_destroy: extern "C" fn(name: *const u8) -> isize,
}Fields§
§malloc: extern "C" fn(data: *mut Context, size: usize) -> *mut u8§free: extern "C" fn(data: *mut Context, ptr: *mut u8)§strndup: extern "C" fn(data: *mut Context, ptr: *const u8, length: usize) -> *mut u8§set_compression: extern "C" fn(data: *mut Context, opt: isize)§set_keep_alive: extern "C" fn(data: *mut Context)§send_header: extern "C" fn(data: *mut Context, key: *const u8, value: *const u8)§send_default_headers: extern "C" fn(data: *mut Context)§set_output_format: extern "C" fn(data: *mut Context, fmt: isize)§add_filler_text: extern "C" fn(data: *mut Context, text: *const u8) -> isize§add_control_flow: extern "C" fn(data: *mut Context, b: isize) -> isize§register_element_tag: extern "C" fn(ctx: *mut Context, s: *const u8, cb: fn())§new_if_node: extern "C" fn(ctx: *mut Context) -> isize§new_swhile_node: extern "C" fn(ctx: *mut Context) -> isize§new_ewhile_node: extern "C" fn(ctx: *mut Context) -> isize§new_call_special_node: extern "C" fn(ctx: *mut Context, symbol: *const u8) -> isize§exit: extern "C" fn(ctx: *mut Context, status: isize)§get_num_plugin_parameters: extern "C" fn(ctx: *mut Context) -> isize§get_plugin_parameter: extern "C" fn(ctx: *mut Context, index: isize, param_ptr: *mut *const u8, param_length: *mut usize) -> isize§storage_open: extern "C" fn(path: *const u8)§storage_begin_transaction: extern "C" fn(txn: *mut *mut Txn)§storage_commit_transaction: extern "C" fn(txn: *mut Txn)§storage_open_database: extern "C" fn(txn: *mut Txn, dbi: *const isize)§storage_close_database: extern "C" fn(dbi: isize) -> isize§storage_get_string: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut *mut u8) -> isize§storage_get_integer: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut isize) -> isize§sql_connect: extern "C" fn(connection: *mut Sql, s: *const u8) -> isize§sql_disconnect: extern "C" fn(connection: *mut Sql) -> isize§sql_execute: extern "C" fn(connection: *mut Sql) -> isize§sql_prepare: extern "C" fn() -> isize§vm_define: extern "C" fn() -> isize§vm_start: extern "C" fn(name: *const u8) -> isize§vm_destroy: extern "C" fn(name: *const u8) -> isizeAuto Trait Implementations§
impl Freeze for TemplatizerCallbacks
impl RefUnwindSafe for TemplatizerCallbacks
impl Send for TemplatizerCallbacks
impl Sync for TemplatizerCallbacks
impl Unpin for TemplatizerCallbacks
impl UnsafeUnpin for TemplatizerCallbacks
impl UnwindSafe for TemplatizerCallbacks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more