Module tarantool::tuple

source ·
Expand description

Tuples

The tuple submodule provides read-only access for the tuple userdata type. It allows, for a single tuple: selective retrieval of the field contents, retrieval of information about size, iteration over all the fields, and conversion from/to rust structures

See also:

Re-exports

Structs

Enums

Traits

  • AsTupleDeprecated
    AsTuple Must be implemented for types, which will be used with box access methods as data
  • Decode Types implementing this trait can be decoded from msgpack.
  • Types implementing this trait can be decoded from msgpack by value.
  • Encode Types implementing this trait can be serialized into a valid tarantool tuple (msgpack array).
  • ToTupleBuffer Types implementing this trait can be converted to tarantool tuple (msgpack array).
  • TupleIndex Types implementing this trait can be used as arguments for the Tuple::get method.
  • A general purpose trait for msgpack serialization.

Functions

  • Push MessagePack data into a session data channel - socket, console or whatever is behind the session. Note, that successful push does not guarantee delivery in case it was sent into the network. Just like with write()/send() system calls.

Derive Macros

  • Macro to automatically derive tarantool::tuple::_Encode Deriving this trait will make this struct encodable into msgpack format. It is meant as a replacement for serde + rmp_serde allowing us to customize it for tarantool case and hopefully also decreasing compile-time due to its simplicity.