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

(, , )

Methods

impl<'a> ErrPacket<'a>
[src]

Returns false if this error packet contains progress report.

Returns true if this error packet contains progress report.

Will panic if ErrPacket does not contains progress report

Will panic if ErrPacket contains progress report

Will panic if ErrPacket contains progress report

Will panic if ErrPacket contains progress report

Important traits for &'a [u8]

Will panic if ErrPacket contains progress report

Will panic if ErrPacket contains progress report

Trait Implementations

impl<'a> Clone for ErrPacket<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for ErrPacket<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Debug for ErrPacket<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Display for ErrPacket<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for ErrPacket<'a>

impl<'a> Sync for ErrPacket<'a>