[−][src]Enum cdrs::frame::frame_response::ResponseBody
Variants
Error(CDRSError)
Ready(BodyResResultVoid)
Authenticate(BodyResAuthenticate)
Supported(BodyResSupported)
Result(ResResultBody)
Event(BodyResEvent)
AuthChallenge(BodyResAuthChallenge)
AuthSuccess(BodyReqAuthSuccess)
Methods
impl ResponseBody
[src]
pub fn from(bytes: &[u8], response_type: &Opcode) -> Result<ResponseBody>
[src]
pub fn into_rows(self) -> Option<Vec<Row>>
[src]
pub fn as_rows_metadata(&self) -> Option<RowsMetadata>
[src]
pub fn as_cols(&self) -> Option<&BodyResResultRows>
[src]
pub fn into_prepared(self) -> Option<BodyResResultPrepared>
[src]
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
.
pub fn into_set_keyspace(self) -> Option<BodyResResultSetKeyspace>
[src]
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
.
pub fn into_server_event(self) -> Option<BodyResEvent>
[src]
It unwraps body and returns BodyResEvent.
If frame body is not of type Result
this method returns None
.
pub fn get_authenticator<'a>(&'a self) -> Option<&'a str>
[src]
Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,