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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more