pub struct SessionFsSqliteTransactionError {
pub error_class: SessionFsSqliteTransactionErrorClass,
pub message: String,
}Expand description
Classified SQLite transaction failure returned by
SessionFsSqliteProvider::sqlite_transaction.
Fields§
§error_class: SessionFsSqliteTransactionErrorClassHow the runtime should classify the failure.
message: StringHuman-readable failure description.
Implementations§
Source§impl SessionFsSqliteTransactionError
impl SessionFsSqliteTransactionError
Sourcepub fn fatal(message: impl Into<String>) -> Self
pub fn fatal(message: impl Into<String>) -> Self
Create a Fatal transaction error with the given message.
Sourcepub fn busy_or_locked(message: impl Into<String>) -> Self
pub fn busy_or_locked(message: impl Into<String>) -> Self
Create a BusyOrLocked transaction error with the given message.
Sourcepub fn post_commit_ambiguous(message: impl Into<String>) -> Self
pub fn post_commit_ambiguous(message: impl Into<String>) -> Self
Create a PostCommitAmbiguous transaction error with the given message.
Trait Implementations§
Source§impl Clone for SessionFsSqliteTransactionError
impl Clone for SessionFsSqliteTransactionError
Source§fn clone(&self) -> SessionFsSqliteTransactionError
fn clone(&self) -> SessionFsSqliteTransactionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for SessionFsSqliteTransactionError
impl Error for SessionFsSqliteTransactionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for SessionFsSqliteTransactionError
impl RefUnwindSafe for SessionFsSqliteTransactionError
impl Send for SessionFsSqliteTransactionError
impl Sync for SessionFsSqliteTransactionError
impl Unpin for SessionFsSqliteTransactionError
impl UnsafeUnpin for SessionFsSqliteTransactionError
impl UnwindSafe for SessionFsSqliteTransactionError
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