pub enum Frame {
    String(Bytes),
    Integer(i64),
    Array(Vec<Frame>),
    Boolean(bool),
    Null,
    Map(Vec<Frame>),
    Double(f64),
    Error(Bytes),
}
Expand description

Represents a Segment protocol frame

Variants

String(Bytes)

Represents a string frame which is a binary safe string

Integer(i64)

Represents an integer frame which is a signed 64 bit integer

Array(Vec<Frame>)

Represents an array frame which holds a Vec of frames

Boolean(bool)

Represents a boolean frame

Null

Represents a null frame

Map(Vec<Frame>)

Represents a map frame which is a collection of key value pairs. A Vec is used to represnt a map

Double(f64)

Represents an double frame which is a 64 bit floating point

Error(Bytes)

Represents a error frame which is a binary safe string

Trait Implementations

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.