[][src]Struct rusty_tarantool::tarantool::packets::CommandPacket

pub struct CommandPacket {
    pub code: Code,
    pub internal_fields: Vec<(Key, Value)>,
    pub command_field: Vec<(Key, Vec<u8>)>,
}

tarantool packet intended for serialize and cross thread send

Fields

code: Codeinternal_fields: Vec<(Key, Value)>command_field: Vec<(Key, Vec<u8>)>

Implementations

impl CommandPacket[src]

pub fn call<T>(function: &str, params: &T) -> Result<CommandPacket> where
    T: Serialize
[src]

pub fn select<T>(
    space: i32,
    index: i32,
    key: &T,
    offset: i32,
    limit: i32,
    iterator: i32
) -> Result<CommandPacket> where
    T: Serialize
[src]

pub fn insert<T>(space: i32, tuple: &T) -> Result<CommandPacket> where
    T: Serialize
[src]

pub fn replace<T>(space: i32, tuple: &T) -> Result<CommandPacket> where
    T: Serialize
[src]

pub fn replace_raw(space: i32, tuple_raw: Vec<u8>) -> Result<CommandPacket>[src]

pub fn update<T, T2>(space: i32, key: &T2, args: &T) -> Result<CommandPacket> where
    T: Serialize,
    T2: Serialize
[src]

pub fn upsert<T, T2, T3>(
    space: i32,
    key: &T2,
    def: &T3,
    args: &T
) -> Result<CommandPacket> where
    T: Serialize,
    T2: Serialize,
    T3: Serialize
[src]

pub fn delete<T>(space: i32, key: &T) -> Result<CommandPacket> where
    T: Serialize
[src]

pub fn eval<T>(expression: String, args: &T) -> Result<CommandPacket> where
    T: Serialize
[src]

pub fn ping() -> Result<CommandPacket>[src]

Trait Implementations

impl Clone for CommandPacket[src]

impl Debug for CommandPacket[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.