[][src]Struct tarantool_module::tuple::FunctionCtx

#[repr(C)]pub struct FunctionCtx { /* fields omitted */ }

Implementations

impl FunctionCtx[src]

pub fn return_tuple(self, tuple: Tuple) -> Result<c_int, Error>[src]

Return a Tuple from stored C procedure.

Returned Tuple is automatically reference counted by Tarantool.

  • tuple - a Tuple to return

pub fn return_mp<T>(self, value: &T) -> Result<c_int, Error> where
    T: AsTuple
[src]

Return MessagePack from a stored C procedure. The MessagePack is copied, so it is safe to free/reuse the passed arguments after the call.

MessagePack is not validated, for the sake of speed. It is expected to be a single encoded object. An attempt to encode and return multiple objects without wrapping them into an MP_ARRAY or MP_MAP is undefined behaviour.

  • value - value to be encoded to MessagePack

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.