Enum tikv_client::raw::ColumnFamily[][src]

pub enum ColumnFamily {
    Default,
    Lock,
    Write,
    VersionDefault,
}

A ColumnFamily is an optional parameter for raw::Client requests.

TiKV uses RocksDB’s ColumnFamily support. You can learn more about RocksDB’s ColumnFamilys on their wiki.

By default in TiKV data is stored in three different ColumnFamily values, configurable in the TiKV server’s configuration:

Not providing a call a ColumnFamily means it will use the default value of default.

The best (and only) way to create a ColumnFamily is via the From implementation:

Examples


let cf = ColumnFamily::try_from("write").unwrap();
let cf = ColumnFamily::try_from(String::from("write")).unwrap();

But, you should not need to worry about all this: Many functions which accept a ColumnFamily accept an Into<ColumnFamily>, which means all of the above types can be passed directly to those functions.

Variants

Default
Lock
Write
VersionDefault

Trait Implementations

impl Clone for ColumnFamily[src]

impl Debug for ColumnFamily[src]

impl Display for ColumnFamily[src]

impl Eq for ColumnFamily[src]

impl Hash for ColumnFamily[src]

impl PartialEq<ColumnFamily> for ColumnFamily[src]

impl StructuralEq for ColumnFamily[src]

impl StructuralPartialEq for ColumnFamily[src]

impl TryFrom<&'_ str> for ColumnFamily[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<String> for ColumnFamily[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for ColumnFamily

impl Send for ColumnFamily

impl Sync for ColumnFamily

impl Unpin for ColumnFamily

impl UnwindSafe for ColumnFamily

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument 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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]