Trait Encode

Source
pub trait Encode: Serialize {
    // Provided method
    fn encode(&self, w: &mut impl Write) -> Result<()> { ... }
}
Expand description

Types implementing this trait can be serialized into a valid tarantool tuple (msgpack array).

Provided Methods§

Source

fn encode(&self, w: &mut impl Write) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Encode for ()

Source§

fn encode(&self, w: &mut impl Write) -> Result<()>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Encode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Encode for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P> Encode for (C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<D, E, F, G, H, I, J, K, L, M, N, O, P> Encode for (D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<E, F, G, H, I, J, K, L, M, N, O, P> Encode for (E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<F, G, H, I, J, K, L, M, N, O, P> Encode for (F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<G, H, I, J, K, L, M, N, O, P> Encode for (G, H, I, J, K, L, M, N, O, P)

Source§

impl<H, I, J, K, L, M, N, O, P> Encode for (H, I, J, K, L, M, N, O, P)

Source§

impl<I, J, K, L, M, N, O, P> Encode for (I, J, K, L, M, N, O, P)

Source§

impl<J, K, L, M, N, O, P> Encode for (J, K, L, M, N, O, P)

Source§

impl<K, L, M, N, O, P> Encode for (K, L, M, N, O, P)

Source§

impl<L, M, N, O, P> Encode for (L, M, N, O, P)
where L: Serialize, M: Serialize, N: Serialize, O: Serialize, P: Serialize,

Source§

impl<M, N, O, P> Encode for (M, N, O, P)
where M: Serialize, N: Serialize, O: Serialize, P: Serialize,

Source§

impl<N, O, P> Encode for (N, O, P)
where N: Serialize, O: Serialize, P: Serialize,

Source§

impl<O, P> Encode for (O, P)
where O: Serialize, P: Serialize,

Source§

impl<P> Encode for (P,)
where P: Serialize,

Source§

impl<T> Encode for [T; 0]
where T: Serialize,

Source§

impl<T> Encode for [T; 1]
where T: Serialize,

Source§

impl<T> Encode for [T; 2]
where T: Serialize,

Source§

impl<T> Encode for [T; 3]
where T: Serialize,

Source§

impl<T> Encode for [T; 4]
where T: Serialize,

Source§

impl<T> Encode for [T; 5]
where T: Serialize,

Source§

impl<T> Encode for [T; 6]
where T: Serialize,

Source§

impl<T> Encode for [T; 7]
where T: Serialize,

Source§

impl<T> Encode for [T; 8]
where T: Serialize,

Source§

impl<T> Encode for [T; 9]
where T: Serialize,

Source§

impl<T> Encode for [T; 10]
where T: Serialize,

Source§

impl<T> Encode for [T; 11]
where T: Serialize,

Source§

impl<T> Encode for [T; 12]
where T: Serialize,

Source§

impl<T> Encode for [T; 13]
where T: Serialize,

Source§

impl<T> Encode for [T; 14]
where T: Serialize,

Source§

impl<T> Encode for [T; 15]
where T: Serialize,

Source§

impl<T> Encode for [T; 16]
where T: Serialize,

Source§

impl<T> Encode for [T; 17]
where T: Serialize,

Source§

impl<T> Encode for [T; 18]
where T: Serialize,

Source§

impl<T> Encode for [T; 19]
where T: Serialize,

Source§

impl<T> Encode for [T; 20]
where T: Serialize,

Source§

impl<T> Encode for [T; 21]
where T: Serialize,

Source§

impl<T> Encode for [T; 22]
where T: Serialize,

Source§

impl<T> Encode for [T; 23]
where T: Serialize,

Source§

impl<T> Encode for [T; 24]
where T: Serialize,

Source§

impl<T> Encode for [T; 25]
where T: Serialize,

Source§

impl<T> Encode for [T; 26]
where T: Serialize,

Source§

impl<T> Encode for [T; 27]
where T: Serialize,

Source§

impl<T> Encode for [T; 28]
where T: Serialize,

Source§

impl<T> Encode for [T; 29]
where T: Serialize,

Source§

impl<T> Encode for [T; 30]
where T: Serialize,

Source§

impl<T> Encode for [T; 31]
where T: Serialize,

Source§

impl<T> Encode for [T; 32]
where T: Serialize,

Source§

impl<T> Encode for &T
where T: Encode,

Source§

fn encode(&self, w: &mut impl Write) -> Result<()>

Source§

impl<T> Encode for [T]
where T: Serialize,

Source§

impl<T> Encode for Vec<T>
where T: Serialize,

Implementors§

Source§

impl Encode for tarantool::index::Metadata<'_>

Source§

impl Encode for FuncMetadata

Source§

impl Encode for tarantool::space::Metadata<'_>

Source§

impl Encode for Privilege