pub struct CommandPacket {
pub code: Code,
pub internal_fields: Vec<(Key, Value)>,
pub command_field: Vec<(Key, Vec<u8>)>,
}Expand description
tarantool packet intended for serialize and cross thread send
Fields§
§code: Code§internal_fields: Vec<(Key, Value)>§command_field: Vec<(Key, Vec<u8>)>Implementations§
Source§impl CommandPacket
impl CommandPacket
pub fn call<T>(function: &str, params: &T) -> Result<CommandPacket>where
T: Serialize,
pub fn call_raw(function: &str, params: Vec<u8>) -> Result<CommandPacket>
pub fn select<T>(
space: i32,
index: i32,
key: &T,
offset: i32,
limit: i32,
iterator: i32,
) -> Result<CommandPacket>where
T: Serialize,
pub fn insert<T>(space: i32, tuple: &T) -> Result<CommandPacket>where
T: Serialize,
pub fn replace<T>(space: i32, tuple: &T) -> Result<CommandPacket>where
T: Serialize,
pub fn replace_raw(space: i32, tuple_raw: Vec<u8>) -> Result<CommandPacket>
pub fn update<T, T2>(space: i32, key: &T2, args: &T) -> Result<CommandPacket>
pub fn upsert<T, T2, T3>( space: i32, key: &T2, def: &T3, args: &T, ) -> Result<CommandPacket>
pub fn delete<T>(space: i32, key: &T) -> Result<CommandPacket>where
T: Serialize,
pub fn eval<T>(expression: String, args: &T) -> Result<CommandPacket>where
T: Serialize,
pub fn ping() -> Result<CommandPacket>
pub fn exec_sql<T>(sql: &str, args: &T) -> Result<CommandPacket>where
T: Serialize,
pub fn exec_sql_raw(sql: &str, args_raw: Vec<u8>) -> Result<CommandPacket>
Trait Implementations§
Source§impl Clone for CommandPacket
impl Clone for CommandPacket
Source§fn clone(&self) -> CommandPacket
fn clone(&self) -> CommandPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandPacket
impl RefUnwindSafe for CommandPacket
impl Send for CommandPacket
impl Sync for CommandPacket
impl Unpin for CommandPacket
impl UnsafeUnpin for CommandPacket
impl UnwindSafe for CommandPacket
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