[−][src]Struct sqlx::mysql::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
impl RefUnwindSafe for MySqlDatabaseError
impl Send for MySqlDatabaseError
impl Sync for MySqlDatabaseError
impl Unpin for MySqlDatabaseError
impl UnwindSafe for MySqlDatabaseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,