Struct cdrs::frame::Frame
[−]
[src]
pub struct Frame { pub version: Version, pub flags: Vec<Flag>, pub opcode: Opcode, pub stream: u64, pub body: Vec<u8>, pub tracing_id: Option<Uuid>, pub warnings: Vec<String>, }
Fields
version: Version
flags: Vec<Flag>
opcode: Opcode
stream: u64
body: Vec<u8>
tracing_id: Option<Uuid>
warnings: Vec<String>
Methods
impl Frame
[src]
fn new_req_auth_response(bytes: Vec<u8>) -> Frame
Creates new frame of type AuthResponse
.
impl Frame
[src]
fn new_req_execute(id: CBytesShort,
query_parameters: ParamsReqQuery,
flags: Vec<Flag>)
-> Frame
query_parameters: ParamsReqQuery,
flags: Vec<Flag>)
-> Frame
Note: This function should be used internally for building query request frames.
impl Frame
[src]
fn new_req_options() -> Frame
Creates new frame of type options
.
impl Frame
[src]
fn new_req_prepare(query: String, flags: Vec<Flag>) -> Frame
Note: This function should be used internally for building query request frames.
impl Frame
[src]
fn new_req_query<'a>(query: String,
consistency: Consistency,
values: Option<Vec<Value>>,
with_names: Option<bool>,
page_size: Option<i32>,
paging_state: Option<CBytes>,
serial_consistency: Option<Consistency>,
timestamp: Option<i64>,
flags: Vec<Flag>)
-> Frame
consistency: Consistency,
values: Option<Vec<Value>>,
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.
impl Frame
[src]
fn new_req_startup(compression: Option<String>) -> Frame
Creates new frame of type startup
.
impl Frame
[src]
fn get_body(&self) -> ResponseBody
fn tracing_id(&self) -> Option<Uuid>
fn warnings(&self) -> Vec<String>
fn encode_with(self, compressor: Compression) -> Result<Vec<u8>>
Trait Implementations
impl Debug for Frame
[src]
impl<'a> IntoBytes for Frame
[src]
fn into_cbytes(&self) -> Vec<u8>
It should convert a struct into an array of bytes.