Struct cdrs::frame::Frame

source ·
pub struct Frame {
    pub version: Version,
    pub flags: Vec<Flag>,
    pub opcode: Opcode,
    pub stream: u16,
    pub body: Vec<u8>,
    pub tracing_id: Option<Uuid>,
    pub warnings: Vec<String>,
}

Fields§

§version: Version§flags: Vec<Flag>§opcode: Opcode§stream: u16§body: Vec<u8>§tracing_id: Option<Uuid>§warnings: Vec<String>

Implementations§

Creates new frame of type AuthResponse.

Note: This function should be used internally for building query request frames.

Note: This function should be used internally for building query request frames.

Creates new frame of type options.

Note: This function should be used internally for building query request frames.

Note: This function should be used internally for building query request frames.

Note: This function should be used internally for building query request frames.

Creates new frame of type REGISTER.

Creates new frame of type startup.

Trait Implementations§

Formats the value using the given formatter. Read more
It should convert a struct into an array of bytes.

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.