pub enum TxError<T> {
Abort(T),
Serialization(Error),
DbError(RedisError),
}Expand description
Represents the various ways a transaction can return early. It could be Aborted early due to
some precondition failure. It could fail due to a Serialization error if you’re using any of
the redis_utils::converters. Or if there is an underlying RedisError.
Variants§
Trait Implementations§
Source§impl<U> From<JsonGetError> for TxError<U>
impl<U> From<JsonGetError> for TxError<U>
Source§fn from(err: JsonGetError) -> Self
fn from(err: JsonGetError) -> Self
Converts to this type from the input type.
Source§impl<U> From<RedisError> for TxError<U>
impl<U> From<RedisError> for TxError<U>
Source§fn from(err: RedisError) -> Self
fn from(err: RedisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for TxError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for TxError<T>
impl<T> Send for TxError<T>where
T: Send,
impl<T> Sync for TxError<T>where
T: Sync,
impl<T> Unpin for TxError<T>where
T: Unpin,
impl<T> !UnwindSafe for TxError<T>
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