pub enum TxnKind {
Multi,
Exec,
Discard,
Watch,
Other,
}Expand description
Transaction-control classification for a command.
Variants§
Multi
Exec
Discard
Watch
WATCH — outside MULTI runs the fan-out; inside MULTI is rejected
with an error (Redis semantics: WATCH inside MULTI is not allowed).
UNWATCH is plain Self::Other — outside MULTI it routes to
Route::Unwatch (clear + OK); inside MULTI it queues as a no-op
that dispatch resolves to +OK at EXEC time.
Other
Auto Trait Implementations§
impl Freeze for TxnKind
impl RefUnwindSafe for TxnKind
impl Send for TxnKind
impl Sync for TxnKind
impl Unpin for TxnKind
impl UnsafeUnpin for TxnKind
impl UnwindSafe for TxnKind
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