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§
source§impl Frame
impl Frame
sourcepub fn new_req_auth_response(bytes: Vec<u8>) -> Frame
pub fn new_req_auth_response(bytes: Vec<u8>) -> Frame
Creates new frame of type AuthResponse
.
source§impl Frame
impl Frame
sourcepub fn new_req_batch(query: BodyReqBatch, flags: Vec<Flag>) -> Frame
pub fn new_req_batch(query: BodyReqBatch, flags: Vec<Flag>) -> Frame
Note: This function should be used internally for building query request frames.
source§impl Frame
impl Frame
sourcepub fn new_req_execute(
id: &CBytesShort,
query_parameters: QueryParams,
flags: Vec<Flag>
) -> Frame
pub fn new_req_execute(
id: &CBytesShort,
query_parameters: QueryParams,
flags: Vec<Flag>
) -> Frame
Note: This function should be used internally for building query request frames.
source§impl Frame
impl Frame
sourcepub fn new_req_query(
query: String,
consistency: Consistency,
values: Option<QueryValues>,
with_names: Option<bool>,
page_size: Option<i32>,
paging_state: Option<CBytes>,
serial_consistency: Option<Consistency>,
timestamp: Option<i64>,
flags: Vec<Flag>
) -> Frame
pub fn new_req_query(
query: String,
consistency: Consistency,
values: Option<QueryValues>,
with_names: Option<bool>,
page_size: Option<i32>,
paging_state: Option<CBytes>,
serial_consistency: Option<Consistency>,
timestamp: Option<i64>,
flags: Vec<Flag>
) -> Frame
Note: This function should be used internally for building query request frames.
source§impl Frame
impl Frame
sourcepub fn new_req_register(events: Vec<SimpleServerEvent>) -> Frame
pub fn new_req_register(events: Vec<SimpleServerEvent>) -> Frame
Creates new frame of type REGISTER
.