Struct rusty_tarantool::tarantool::PreparedFunctionCall
source · [−]pub struct PreparedFunctionCall { /* private fields */ }
Implementations
sourceimpl PreparedFunctionCall
impl PreparedFunctionCall
sourcepub async fn execute(self) -> Result<TarantoolResponse>
pub async fn execute(self) -> Result<TarantoolResponse>
call tarantool stored procedure
params mast be serializable to MsgPack tuple by Serde - rust tuple or vector or struct (by default structs serialized as tuple)
order of fields in serializes tuple is order od parameters of procedure
Examples
lua function on tarantool
function test(a,b)
return a,b,11
end
rust code
let response = client
.prepare_fn_call("test")
.bind_ref(&("aa", "aa"))?
.bind(1)?
.execute().await?;
Trait Implementations
sourceimpl ExecWithParamaters for PreparedFunctionCall
impl ExecWithParamaters for PreparedFunctionCall
Auto Trait Implementations
impl !RefUnwindSafe for PreparedFunctionCall
impl Send for PreparedFunctionCall
impl Sync for PreparedFunctionCall
impl Unpin for PreparedFunctionCall
impl !UnwindSafe for PreparedFunctionCall
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more