Enum ql2::response::ResponseType[][src]

#[repr(i32)]pub enum ResponseType {
    SuccessAtom,
    SuccessSequence,
    SuccessPartial,
    WaitComplete,
    ServerInfo,
    ClientError,
    CompileError,
    RuntimeError,
}

Variants

SuccessAtom

These response types indicate success.

Query returned a single RQL datatype.

SuccessSequence

Query returned a sequence of RQL datatypes.

SuccessPartial

Query returned a partial sequence of RQL

WaitComplete

datatypes. If you send a [CONTINUE] query with the same token as this response, you will get more of the sequence. Keep sending [CONTINUE] queries until you get back [SUCCESS_SEQUENCE].

A [NOREPLY_WAIT] query completed.

ServerInfo

The data for a [SERVER_INFO] request. This is

ClientError

These response types indicate failure.

Means the client is buggy. An example is if the

CompileError

client sends a malformed protobuf, or tries to send [CONTINUE] for an unknown token.

Means the query failed during parsing or type

RuntimeError

checking. For example, if you pass too many arguments to a function.

Means the query failed at runtime. An example is

Implementations

impl ResponseType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of ResponseType.

pub fn from_i32(value: i32) -> Option<ResponseType>[src]

Converts an i32 to a ResponseType, or None if value is not a valid variant.

Trait Implementations

impl Clone for ResponseType[src]

impl Copy for ResponseType[src]

impl Debug for ResponseType[src]

impl Default for ResponseType[src]

impl Eq for ResponseType[src]

impl Hash for ResponseType[src]

impl Ord for ResponseType[src]

impl PartialEq<ResponseType> for ResponseType[src]

impl PartialOrd<ResponseType> for ResponseType[src]

impl StructuralEq for ResponseType[src]

impl StructuralPartialEq for ResponseType[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, 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.