Struct __db_txn

Source
#[repr(C)]
pub struct __db_txn {
Show 35 fields pub mgrp: *mut DB_TXNMGR, pub parent: *mut DB_TXN, pub thread_info: *mut DB_THREAD_INFO, pub txnid: u_int32_t, pub name: *mut c_char, pub locker: *mut DB_LOCKER, pub td: *mut c_void, pub lock_timeout: db_timeout_t, pub txn_list: *mut c_void, pub links: __db_txn__bindgen_ty_1, pub xa_links: __db_txn__bindgen_ty_2, pub kids: __db_txn___kids, pub events: __db_txn__bindgen_ty_3, pub logs: __db_txn__bindgen_ty_4, pub klinks: __db_txn__bindgen_ty_5, pub my_cursors: __db_txn___my_cursors, pub femfs: __db_txn___femfs, pub token_buffer: *mut DB_TXN_TOKEN, pub api_internal: *mut c_void, pub xml_internal: *mut c_void, pub cursors: u_int32_t, pub abort: Option<unsafe extern "C" fn(arg1: *mut DB_TXN) -> c_int>, pub commit: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: u_int32_t) -> c_int>, pub discard: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: u_int32_t) -> c_int>, pub get_name: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut *const c_char) -> c_int>, pub get_priority: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut u_int32_t) -> c_int>, pub id: Option<unsafe extern "C" fn(arg1: *mut DB_TXN) -> u_int32_t>, pub prepare: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut u_int8_t) -> c_int>, pub set_commit_token: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut DB_TXN_TOKEN) -> c_int>, pub set_name: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *const c_char) -> c_int>, pub set_priority: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: u_int32_t) -> c_int>, pub set_timeout: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: db_timeout_t, arg3: u_int32_t) -> c_int>, pub set_txn_lsnp: Option<unsafe extern "C" fn(txn: *mut DB_TXN, arg1: *mut *mut DB_LSN, arg2: *mut *mut DB_LSN)>, pub xa_thr_status: u_int32_t, pub flags: u_int32_t,
}

Fields§

§mgrp: *mut DB_TXNMGR§parent: *mut DB_TXN§thread_info: *mut DB_THREAD_INFO§txnid: u_int32_t§name: *mut c_char§locker: *mut DB_LOCKER§td: *mut c_void§lock_timeout: db_timeout_t§txn_list: *mut c_void§links: __db_txn__bindgen_ty_1§xa_links: __db_txn__bindgen_ty_2§kids: __db_txn___kids§events: __db_txn__bindgen_ty_3§logs: __db_txn__bindgen_ty_4§klinks: __db_txn__bindgen_ty_5§my_cursors: __db_txn___my_cursors§femfs: __db_txn___femfs§token_buffer: *mut DB_TXN_TOKEN§api_internal: *mut c_void§xml_internal: *mut c_void§cursors: u_int32_t§abort: Option<unsafe extern "C" fn(arg1: *mut DB_TXN) -> c_int>§commit: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: u_int32_t) -> c_int>§discard: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: u_int32_t) -> c_int>§get_name: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut *const c_char) -> c_int>§get_priority: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut u_int32_t) -> c_int>§id: Option<unsafe extern "C" fn(arg1: *mut DB_TXN) -> u_int32_t>§prepare: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut u_int8_t) -> c_int>§set_commit_token: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *mut DB_TXN_TOKEN) -> c_int>§set_name: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: *const c_char) -> c_int>§set_priority: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: u_int32_t) -> c_int>§set_timeout: Option<unsafe extern "C" fn(arg1: *mut DB_TXN, arg2: db_timeout_t, arg3: u_int32_t) -> c_int>§set_txn_lsnp: Option<unsafe extern "C" fn(txn: *mut DB_TXN, arg1: *mut *mut DB_LSN, arg2: *mut *mut DB_LSN)>§xa_thr_status: u_int32_t§flags: u_int32_t

Trait Implementations§

Source§

impl Clone for __db_txn

Source§

fn clone(&self) -> __db_txn

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 __db_txn

Source§

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

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

impl Default for __db_txn

Source§

fn default() -> Self

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

impl Copy for __db_txn

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, 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.