pub struct PreparedFunctionCall { /* private fields */ }
Implementations§
Source§impl 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§
Source§impl ExecWithParamaters for PreparedFunctionCall
impl ExecWithParamaters for PreparedFunctionCall
Auto Trait Implementations§
impl Freeze for PreparedFunctionCall
impl !RefUnwindSafe for PreparedFunctionCall
impl Send for PreparedFunctionCall
impl Sync for PreparedFunctionCall
impl Unpin for PreparedFunctionCall
impl !UnwindSafe for PreparedFunctionCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more