[][src]Enum tarantool_module::tuple::TupleBuffer

pub enum TupleBuffer {
    Vector(Vec<u8>),
    TransactionScoped {
        ptr: *mut u8,
        size: usize,
    },
}

Buffer containing tuple contents (MsgPack array)

If buffer is allocated within transaction: will be disposed after transaction ended (committed or dropped). If not: will act as a regular rust Vec<u8>

Variants

Vector(Vec<u8>)
TransactionScoped

Fields of TransactionScoped

ptr: *mut u8size: usize

Implementations

impl TupleBuffer[src]

pub fn as_ptr(&self) -> *const u8[src]

Get raw pointer to buffer.

pub fn len(&self) -> usize[src]

Return the number of bytes used in memory by the tuple.

Trait Implementations

impl From<Vec<u8>> for TupleBuffer[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.