Struct __dbc

Source
#[repr(C)]
pub struct __dbc {
Show 46 fields pub dbp: *mut DB, pub dbenv: *mut DB_ENV, pub env: *mut ENV, pub thread_info: *mut DB_THREAD_INFO, pub txn: *mut DB_TXN, pub priority: DB_CACHE_PRIORITY, pub links: __dbc__bindgen_ty_1, pub txn_cursors: __dbc__bindgen_ty_2, pub rskey: *mut DBT, pub rkey: *mut DBT, pub rdata: *mut DBT, pub my_rskey: DBT, pub my_rkey: DBT, pub my_rdata: DBT, pub lref: *mut DB_LOCKER, pub locker: *mut DB_LOCKER, pub lock_dbt: DBT, pub lock: DB_LOCK_ILOCK, pub mylock: DB_LOCK, pub dbtype: DBTYPE, pub internal: *mut DBC_INTERNAL, pub close: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>, pub cmp: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBC, arg3: *mut c_int, arg4: u_int32_t) -> c_int>, pub count: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut db_recno_t, arg3: u_int32_t) -> c_int>, pub del: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: u_int32_t) -> c_int>, pub dup: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut *mut DBC, arg3: u_int32_t) -> c_int>, pub get: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>, pub get_priority: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DB_CACHE_PRIORITY) -> c_int>, pub pget: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: *mut DBT, arg5: u_int32_t) -> c_int>, pub put: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>, pub set_priority: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: DB_CACHE_PRIORITY) -> c_int>, pub c_close: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>, pub c_count: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut db_recno_t, arg3: u_int32_t) -> c_int>, pub c_del: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: u_int32_t) -> c_int>, pub c_dup: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut *mut DBC, arg3: u_int32_t) -> c_int>, pub c_get: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>, pub c_pget: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: *mut DBT, arg5: u_int32_t) -> c_int>, pub c_put: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>, pub am_bulk: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: u_int32_t) -> c_int>, pub am_close: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: db_pgno_t, arg3: *mut c_int) -> c_int>, pub am_del: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: u_int32_t) -> c_int>, pub am_destroy: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>, pub am_get: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t, arg5: *mut db_pgno_t) -> c_int>, pub am_put: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t, arg5: *mut db_pgno_t) -> c_int>, pub am_writelock: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>, pub flags: u_int32_t,
}
Expand description

Access method cursors.

Fields§

§dbp: *mut DB§dbenv: *mut DB_ENV§env: *mut ENV§thread_info: *mut DB_THREAD_INFO§txn: *mut DB_TXN§priority: DB_CACHE_PRIORITY§links: __dbc__bindgen_ty_1§txn_cursors: __dbc__bindgen_ty_2§rskey: *mut DBT§rkey: *mut DBT§rdata: *mut DBT§my_rskey: DBT§my_rkey: DBT§my_rdata: DBT§lref: *mut DB_LOCKER§locker: *mut DB_LOCKER§lock_dbt: DBT§lock: DB_LOCK_ILOCK§mylock: DB_LOCK§dbtype: DBTYPE§internal: *mut DBC_INTERNAL§close: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>§cmp: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBC, arg3: *mut c_int, arg4: u_int32_t) -> c_int>§count: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut db_recno_t, arg3: u_int32_t) -> c_int>§del: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: u_int32_t) -> c_int>§dup: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut *mut DBC, arg3: u_int32_t) -> c_int>§get: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>§get_priority: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DB_CACHE_PRIORITY) -> c_int>§pget: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: *mut DBT, arg5: u_int32_t) -> c_int>§put: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>§set_priority: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: DB_CACHE_PRIORITY) -> c_int>§c_close: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>§c_count: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut db_recno_t, arg3: u_int32_t) -> c_int>§c_del: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: u_int32_t) -> c_int>§c_dup: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut *mut DBC, arg3: u_int32_t) -> c_int>§c_get: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>§c_pget: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: *mut DBT, arg5: u_int32_t) -> c_int>§c_put: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t) -> c_int>§am_bulk: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: u_int32_t) -> c_int>§am_close: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: db_pgno_t, arg3: *mut c_int) -> c_int>§am_del: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: u_int32_t) -> c_int>§am_destroy: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>§am_get: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t, arg5: *mut db_pgno_t) -> c_int>§am_put: Option<unsafe extern "C" fn(arg1: *mut DBC, arg2: *mut DBT, arg3: *mut DBT, arg4: u_int32_t, arg5: *mut db_pgno_t) -> c_int>§am_writelock: Option<unsafe extern "C" fn(arg1: *mut DBC) -> c_int>§flags: u_int32_t

Trait Implementations§

Source§

impl Clone for __dbc

Source§

fn clone(&self) -> __dbc

Returns a copy 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 __dbc

Source§

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

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

impl Default for __dbc

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for __dbc

Auto Trait Implementations§

§

impl Freeze for __dbc

§

impl RefUnwindSafe for __dbc

§

impl !Send for __dbc

§

impl !Sync for __dbc

§

impl Unpin for __dbc

§

impl UnwindSafe for __dbc

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.