Struct mysql_common::packets::OkPacket
[−]
[src]
pub struct OkPacket<'a> { /* fields omitted */ }
Represents MySql's Ok packet.
Methods
impl<'a> OkPacket<'a>
[src]
fn into_owned(self) -> OkPacket<'static>
fn affected_rows(&self) -> u64
Value of the affected_rows field of an Ok packet.
fn last_insert_id(&self) -> Option<u64>
Value of the last_insert_id field of an Ok packet.
fn status_flags(&self) -> StatusFlags
Value of the status_flags field of an Ok packet.
fn warnings(&self) -> u16
Value of the warnings field of an Ok packet.
fn info_ref(&self) -> Option<&[u8]>
Value of the info field of an Ok packet as a byte slice.
fn info_str<'x>(&'x self) -> Option<Cow<'x, str>>
Value of the info field of an Ok packet as a string (lossy converted).
fn session_state_info(&self) -> Option<&SessionStateInfo>
Trait Implementations
impl<'a> Clone for OkPacket<'a>
[src]
fn clone(&self) -> OkPacket<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Eq for OkPacket<'a>
[src]
impl<'a> PartialEq for OkPacket<'a>
[src]
fn eq(&self, __arg_0: &OkPacket<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OkPacket<'a>) -> bool
This method tests for !=
.