[−][src]Struct tarantool::tuple::FunctionCtx
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]
T: AsTuple,
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
impl RefUnwindSafe for FunctionCtx[src]
impl !Send for FunctionCtx[src]
impl !Sync for FunctionCtx[src]
impl Unpin for FunctionCtx[src]
impl UnwindSafe for FunctionCtx[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,