[][src]Enum sonic_channel::ChannelMode

pub enum ChannelMode {
    Search,
    Ingest,
    Control,
}

Channel modes supported by sonic search backend.

Variants

Search

Sonic server search channel mode.

In this mode you can use query, suggest, ping and quit commands.

Note: This mode requires enabling the search feature.

Ingest

Sonic server ingest channel mode.

In this mode you can use push, pop, flushc, flushb, flusho, ping and quit commands.

Note: This mode requires enabling the ingest feature.

Control

Sonic server control channel mode.

In this mode you can use ping and quit commands.

Note: This mode requires enabling the control feature.

Implementations

impl ChannelMode[src]

pub fn to_str(&self) -> &str[src]

Converts enum to &str

Trait Implementations

impl Clone for ChannelMode[src]

impl Copy for ChannelMode[src]

impl Debug for ChannelMode[src]

impl Display for ChannelMode[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> 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.