[][src]Struct sqlx::mysql::MySqlDatabaseError

pub struct MySqlDatabaseError(_);
This is supported on crate feature mysql only.

An error returned from the MySQL database.

Implementations

impl MySqlDatabaseError[src]

pub fn code(&self) -> Option<&str>[src]

This is supported on crate feature mysql only.

The SQLSTATE code for this error.

pub fn number(&self) -> u16[src]

This is supported on crate feature mysql only.

The number for this error.

MySQL tends to use SQLSTATE as a general error category, and the error number as a more granular indication of the error.

pub fn message(&self) -> &str[src]

This is supported on crate feature mysql only.

The human-readable error message.

Trait Implementations

impl DatabaseError for MySqlDatabaseError[src]

impl Debug for MySqlDatabaseError[src]

impl Display for MySqlDatabaseError[src]

impl Error for MySqlDatabaseError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,