[][src]Enum sonic_channel::result::ErrorKind

pub enum ErrorKind {
    ConnectToServer,
    WriteToStream,
    ReadStream,
    SwitchMode,
    RunCommand,
    QueryResponseError(&'static str),
    WrongSonicResponse,
    UnsupportedCommand((&'static str, Option<ChannelMode>)),
}

All error kinds that you can see in sonic-channel crate.

Variants

ConnectToServer

Cannot connect to the sonic search backend.

WriteToStream

Cannot write message to stream.

ReadStream

Cannot read message in stream.

SwitchMode

Cannot switch channel mode from uninitialized.

RunCommand

Cannot run command in current mode.

QueryResponseError(&'static str)

Error in query response with additional message.

WrongSonicResponse

Response from sonic server are wrong! Actually it may happen if you use unsupported sonic backend version. Please write issue to the github repo.

UnsupportedCommand((&'static str, Option<ChannelMode>))

You cannot run the command in current channel.

Trait Implementations

impl Debug for ErrorKind[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, 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.