[][src]Struct lmdb_sys::MDB_val

#[repr(C)]
pub struct MDB_val {
    pub mv_size: usize,
    pub mv_data: *mut c_void,
}

@brief Generic structure used for passing keys and data in and out of the database.

Values returned from the database are valid only until a subsequent update operation, or the end of the transaction. Do not modify or free them, they commonly point into the database itself.

Key sizes must be between 1 and #mdb_env_get_maxkeysize() inclusive. The same applies to data sizes in databases with the #MDB_DUPSORT flag. Other data items can in theory be from 0 to 0xffffffff bytes long.

Fields

mv_size: usize

< size of the data item

mv_data: *mut c_void

< address of the data item

Auto Trait Implementations

impl !Send for MDB_val

impl Unpin for MDB_val

impl !Sync for MDB_val

impl UnwindSafe for MDB_val

impl RefUnwindSafe for MDB_val

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]