Enum redis_protocol::types::Frame[][src]

pub enum Frame {
    SimpleString(String),
    Error(String),
    Integer(i64),
    BulkString(Vec<u8>),
    Array(Vec<Frame>),
    Moved(String),
    Ask(String),
    Null,
}

An enum representing a Frame of data. Frames are recursively defined to account for arrays.

Variants

Methods

impl Frame
[src]

Whether or not the frame is an error.

Whether or not the frame represents a message on a publish-subscribe channel.

Read the FrameKind value for this frame.

Attempt to read the frame value as a string slice.

Whether or not the frame is a simple string or bulk string.

Whether or not the frame is Null.

Whether or not the frame is an array of frames.

Whether or not the frame is an integer.

Whether or not the framed is a a Moved or Ask error.

Attempt to parse the frame as a publish-subscribe message, returning the (channel, message) tuple if successful, or the original frame if the inner data is not a publish-subscribe message.

Trait Implementations

impl Clone for Frame
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Frame
[src]

Formats the value using the given formatter. Read more

impl Eq for Frame
[src]

impl PartialEq for Frame
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Frame

impl Sync for Frame