Enum mysql_common::packets::ErrPacket
[−]
[src]
pub enum ErrPacket<'a> { Error(u16, [u8; 5], Cow<'a, [u8]>), Progress(ProgressReport<'a>), }
MySql error packet.
May hold an error or a progress report.
Variants
Error(u16, [u8; 5], Cow<'a, [u8]>)
(
Progress(ProgressReport<'a>)
Methods
impl<'a> ErrPacket<'a>
[src]
fn is_error(&self) -> bool
Returns false if this error packet contains progress report.
fn is_progress_report(&self) -> bool
Returns true if this error packet contains progress report.
fn progress_report(&self) -> &ProgressReport
Will panic if ErrPacket does not contains progress report
fn error_code(&self) -> u16
Will panic if ErrPacket contains progress report
fn sql_state_ref(&self) -> &[u8; 5]
Will panic if ErrPacket contains progress report
fn sql_state_str(&self) -> Cow<str>
Will panic if ErrPacket contains progress report
fn message_ref(&self) -> &[u8]
Will panic if ErrPacket contains progress report
fn message_str(&self) -> Cow<str>
Will panic if ErrPacket contains progress report
fn into_owned(self) -> ErrPacket<'static>
Trait Implementations
impl<'a> Clone for ErrPacket<'a>
[src]
fn clone(&self) -> ErrPacket<'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> PartialEq for ErrPacket<'a>
[src]
fn eq(&self, __arg_0: &ErrPacket<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrPacket<'a>) -> bool
This method tests for !=
.