pub struct obj_db_t { /* private fields */ }Expand description
Opaque database handle.
Created by obj_open / obj_open_with_config; freed by
obj_close. The Rust side holds an Arc<obj_engine::Db> so
future transaction handles (issue #103) can each hold an
Arc to outlive the original obj_open return point.
The struct is opaque to C: cbindgen emits a forward
declaration only (typedef struct obj_db_t obj_db_t;). The
Rust-side layout is NOT #[repr(C)] because the Arc field is
not C-compatible — C callers only ever see pointer-shaped
access via the API below.
Auto Trait Implementations§
impl Freeze for obj_db_t
impl RefUnwindSafe for obj_db_t
impl Send for obj_db_t
impl Sync for obj_db_t
impl Unpin for obj_db_t
impl UnsafeUnpin for obj_db_t
impl UnwindSafe for obj_db_t
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