Struct MDBX_chk_callbacks

Source
#[repr(C)]
pub struct MDBX_chk_callbacks {
Show 17 fields pub check_break: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t) -> bool>, pub scope_push: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, outer: *mut MDBX_chk_scope_t, inner: *mut MDBX_chk_scope_t, fmt: *const c_char, args: *mut __va_list_tag) -> c_int>, pub scope_conclude: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, outer: *mut MDBX_chk_scope_t, inner: *mut MDBX_chk_scope_t, err: c_int) -> c_int>, pub scope_pop: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, outer: *mut MDBX_chk_scope_t, inner: *mut MDBX_chk_scope_t)>, pub issue: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, object: *const c_char, entry_number: u64, issue: *const c_char, extra_fmt: *const c_char, extra_args: *mut __va_list_tag)>, pub table_filter: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, name: *const MDBX_val, flags: MDBX_db_flags_t) -> *mut MDBX_chk_user_table_cookie_t>, pub table_conclude: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, table: *const MDBX_chk_table_t, cursor: *mut MDBX_cursor, err: c_int) -> c_int>, pub table_dispose: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, table: *const MDBX_chk_table_t)>, pub table_handle_kv: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, table: *const MDBX_chk_table_t, entry_number: usize, key: *const MDBX_val, value: *const MDBX_val) -> c_int>, pub stage_begin: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, arg1: MDBX_chk_stage_t) -> c_int>, pub stage_end: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, arg1: MDBX_chk_stage_t, err: c_int) -> c_int>, pub print_begin: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, severity: MDBX_chk_severity_t) -> *mut MDBX_chk_line_t>, pub print_flush: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t)>, pub print_done: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t)>, pub print_chars: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t, str_: *const c_char, len: usize)>, pub print_format: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t, fmt: *const c_char, args: *mut __va_list_tag)>, pub print_size: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t, prefix: *const c_char, value: u64, suffix: *const c_char)>,
}

Fields§

§check_break: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t) -> bool>§scope_push: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, outer: *mut MDBX_chk_scope_t, inner: *mut MDBX_chk_scope_t, fmt: *const c_char, args: *mut __va_list_tag) -> c_int>§scope_conclude: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, outer: *mut MDBX_chk_scope_t, inner: *mut MDBX_chk_scope_t, err: c_int) -> c_int>§scope_pop: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, outer: *mut MDBX_chk_scope_t, inner: *mut MDBX_chk_scope_t)>§issue: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, object: *const c_char, entry_number: u64, issue: *const c_char, extra_fmt: *const c_char, extra_args: *mut __va_list_tag)>§table_filter: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, name: *const MDBX_val, flags: MDBX_db_flags_t) -> *mut MDBX_chk_user_table_cookie_t>§table_conclude: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, table: *const MDBX_chk_table_t, cursor: *mut MDBX_cursor, err: c_int) -> c_int>§table_dispose: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, table: *const MDBX_chk_table_t)>§table_handle_kv: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, table: *const MDBX_chk_table_t, entry_number: usize, key: *const MDBX_val, value: *const MDBX_val) -> c_int>§stage_begin: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, arg1: MDBX_chk_stage_t) -> c_int>§stage_end: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, arg1: MDBX_chk_stage_t, err: c_int) -> c_int>§print_begin: Option<unsafe extern "C" fn(ctx: *mut MDBX_chk_context_t, severity: MDBX_chk_severity_t) -> *mut MDBX_chk_line_t>§print_flush: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t)>§print_done: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t)>§print_chars: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t, str_: *const c_char, len: usize)>§print_format: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t, fmt: *const c_char, args: *mut __va_list_tag)>§print_size: Option<unsafe extern "C" fn(arg1: *mut MDBX_chk_line_t, prefix: *const c_char, value: u64, suffix: *const c_char)>

Trait Implementations§

Source§

impl Clone for MDBX_chk_callbacks

Source§

fn clone(&self) -> MDBX_chk_callbacks

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MDBX_chk_callbacks

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for MDBX_chk_callbacks

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 136 bytes