Enum cdrs::frame::frame_response::ResponseBody
[−]
[src]
pub enum ResponseBody { Error(CDRSError), Startup, Ready(BodyResResultVoid), Authenticate(BodyResAuthenticate), Options, Supported(BodyResSupported), Query, Result(ResResultBody), Prepare, Execute, Register, Event(BodyResEvent), Batch, AuthChallenge(BodyResAuthChallenge), AuthResponse, AuthSuccess(BodyReqAuthSuccess), }
Variants
Error(CDRSError)
Startup
Ready(BodyResResultVoid)
Authenticate(BodyResAuthenticate)
Options
Supported(BodyResSupported)
Query
Result(ResResultBody)
Prepare
Execute
Register
Event(BodyResEvent)
Batch
AuthChallenge(BodyResAuthChallenge)
AuthResponse
AuthSuccess(BodyReqAuthSuccess)
Methods
impl ResponseBody
[src]
fn from(bytes: &[u8], response_type: &Opcode) -> ResponseBody
fn into_rows(self) -> Option<Vec<Row>>
fn as_cols(&self) -> Option<&BodyResResultRows>
fn into_prepared(self) -> Option<BodyResResultPrepared>
It unwraps body and returns BodyResResultPrepared which contains an exact result of
PREPARE query. If frame body is not of type Result
this method returns None
.
fn into_set_keyspace(self) -> Option<BodyResResultSetKeyspace>
It unwraps body and returns BodyResResultPrepared which contains an exact result of
use keyspace query. If frame body is not of type Result
this method returns None
.
fn into_server_event(self) -> Option<BodyResEvent>
It unwraps body and returns BodyResEvent.
If frame body is not of type Result
this method returns None
.