pub enum ResponseBody {
Error(ErrorBody),
Ready,
Authenticate(BodyResAuthenticate),
Supported(BodyResSupported),
Result(ResResultBody),
Event(BodyResEvent),
AuthChallenge(BodyResAuthChallenge),
AuthSuccess(BodyReqAuthSuccess),
}
Variants
Error(ErrorBody)
Ready
Authenticate(BodyResAuthenticate)
Supported(BodyResSupported)
Result(ResResultBody)
Event(BodyResEvent)
AuthChallenge(BodyResAuthChallenge)
AuthSuccess(BodyReqAuthSuccess)
Implementations
sourceimpl ResponseBody
impl ResponseBody
pub fn try_from(
bytes: &[u8],
response_type: Opcode,
version: Version
) -> Result<ResponseBody>
pub fn into_rows(self) -> Option<Vec<Row>>
pub fn as_rows_metadata(&self) -> Option<&RowsMetadata>
pub fn as_cols(&self) -> Option<&BodyResResultRows>
sourcepub fn into_prepared(self) -> Option<BodyResResultPrepared>
pub fn into_prepared(self) -> Option<BodyResResultPrepared>
Unwraps body and returns BodyResResultPrepared which contains an exact result of PREPARE query.
sourcepub fn into_set_keyspace(self) -> Option<BodyResResultSetKeyspace>
pub fn into_set_keyspace(self) -> Option<BodyResResultSetKeyspace>
Unwraps body and returns BodyResResultPrepared which contains an exact result of use keyspace query.
sourcepub fn into_server_event(self) -> Option<BodyResEvent>
pub fn into_server_event(self) -> Option<BodyResEvent>
Unwraps body and returns BodyResEvent.
pub fn authenticator(&self) -> Option<&str>
pub fn into_error(self) -> Option<ErrorBody>
Trait Implementations
sourceimpl Clone for ResponseBody
impl Clone for ResponseBody
sourcefn clone(&self) -> ResponseBody
fn clone(&self) -> ResponseBody
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ResponseBody
impl Debug for ResponseBody
sourceimpl PartialEq<ResponseBody> for ResponseBody
impl PartialEq<ResponseBody> for ResponseBody
sourcefn eq(&self, other: &ResponseBody) -> bool
fn eq(&self, other: &ResponseBody) -> bool
impl Eq for ResponseBody
impl StructuralEq for ResponseBody
impl StructuralPartialEq for ResponseBody
Auto Trait Implementations
impl RefUnwindSafe for ResponseBody
impl Send for ResponseBody
impl Sync for ResponseBody
impl Unpin for ResponseBody
impl UnwindSafe for ResponseBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more