pub enum ErrPacket<'a> {
Error(ServerError<'a>),
Progress(ProgressReport<'a>),
}Expand description
MySql error packet.
May hold an error or a progress report.
Variants§
Error(ServerError<'a>)
Progress(ProgressReport<'a>)
Implementations§
Source§impl ErrPacket<'_>
impl ErrPacket<'_>
Sourcepub fn is_progress_report(&self) -> bool
pub fn is_progress_report(&self) -> bool
Returns true if this error packet contains progress report.
Sourcepub fn progress_report(&self) -> &ProgressReport<'_>
pub fn progress_report(&self) -> &ProgressReport<'_>
Will panic if ErrPacket does not contains progress report
Sourcepub fn server_error(&self) -> &ServerError<'_>
pub fn server_error(&self) -> &ServerError<'_>
Will panic if ErrPacket does not contains a ServerError.
Trait Implementations§
Source§impl<'de> MyDeserialize<'de> for ErrPacket<'de>
impl<'de> MyDeserialize<'de> for ErrPacket<'de>
Source§impl MySerialize for ErrPacket<'_>
impl MySerialize for ErrPacket<'_>
impl<'a> StructuralPartialEq for ErrPacket<'a>
Auto Trait Implementations§
impl<'a> Freeze for ErrPacket<'a>
impl<'a> RefUnwindSafe for ErrPacket<'a>
impl<'a> Send for ErrPacket<'a>
impl<'a> Sync for ErrPacket<'a>
impl<'a> Unpin for ErrPacket<'a>
impl<'a> UnwindSafe for ErrPacket<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more