[−][src]Struct rusty_tarantool::tarantool::packets::CommandPacket
tarantool packet intended for serialize and cross thread send
Fields
code: Code
internal_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]
T: Serialize,
pub fn select<T>(
space: i32,
index: i32,
key: &T,
offset: i32,
limit: i32,
iterator: i32
) -> Result<CommandPacket> where
T: Serialize,
[src]
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,
[src]
T: Serialize,
pub fn replace<T>(space: i32, tuple: &T) -> Result<CommandPacket> where
T: Serialize,
[src]
T: Serialize,
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]
T: Serialize,
T2: Serialize,
pub fn upsert<T, T2, T3>(
space: i32,
key: &T2,
def: &T3,
args: &T
) -> Result<CommandPacket> where
T: Serialize,
T2: Serialize,
T3: Serialize,
[src]
space: i32,
key: &T2,
def: &T3,
args: &T
) -> Result<CommandPacket> where
T: Serialize,
T2: Serialize,
T3: Serialize,
pub fn delete<T>(space: i32, key: &T) -> Result<CommandPacket> where
T: Serialize,
[src]
T: Serialize,
pub fn eval<T>(expression: String, args: &T) -> Result<CommandPacket> where
T: Serialize,
[src]
T: Serialize,
pub fn ping() -> Result<CommandPacket>
[src]
Trait Implementations
impl Clone for CommandPacket
[src]
pub fn clone(&self) -> CommandPacket
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CommandPacket
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommandPacket
[src]
impl Send for CommandPacket
[src]
impl Sync for CommandPacket
[src]
impl Unpin for CommandPacket
[src]
impl UnwindSafe for CommandPacket
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,