Enum tower_sessions::SqlxStoreError
source · pub enum SqlxStoreError {
SessionError(SessionError),
SqlxError(Error),
SerdeJsonError(Error),
RmpSerdeEncodeError(Error),
RmpSerdeDecodeError(Error),
}Available on crate feature
sqlx-store only.Expand description
An error type for SQLx stores.
Variants§
SessionError(SessionError)
A variant to map session errors.
SqlxError(Error)
A variant to map sqlx errors.
SerdeJsonError(Error)
A variant to map serde_json errors.
RmpSerdeEncodeError(Error)
A variant to map rmp_serde encode errors.
RmpSerdeDecodeError(Error)
A variant to map rmp_serde decode errors.
Trait Implementations§
source§impl Debug for SqlxStoreError
impl Debug for SqlxStoreError
source§impl Display for SqlxStoreError
impl Display for SqlxStoreError
source§impl Error for SqlxStoreError
impl Error for SqlxStoreError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for SqlxStoreError
impl From<Error> for SqlxStoreError
source§impl From<Error> for SqlxStoreError
impl From<Error> for SqlxStoreError
source§impl From<Error> for SqlxStoreError
impl From<Error> for SqlxStoreError
source§impl From<Error> for SqlxStoreError
impl From<Error> for SqlxStoreError
source§impl From<SessionError> for SqlxStoreError
impl From<SessionError> for SqlxStoreError
source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SqlxStoreError
impl Send for SqlxStoreError
impl Sync for SqlxStoreError
impl Unpin for SqlxStoreError
impl !UnwindSafe for SqlxStoreError
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