pub struct TransactionResult { /* private fields */ }Expand description
Transaction result wrapper for easier handling
Implementations§
Source§impl TransactionResult
impl TransactionResult
Sourcepub fn next<T>(&mut self) -> RedisResult<T>
pub fn next<T>(&mut self) -> RedisResult<T>
Get the next result from the transaction
§Errors
Returns an error if there are no more results or type conversion fails.
Sourcepub fn get<T>(&self, index: usize) -> RedisResult<T>
pub fn get<T>(&self, index: usize) -> RedisResult<T>
Get a result at a specific index
§Errors
Returns an error if the index is out of bounds or type conversion fails.
Sourcepub fn into_results(self) -> Vec<RespValue>
pub fn into_results(self) -> Vec<RespValue>
Get all results as a vector
Trait Implementations§
Source§impl Clone for TransactionResult
impl Clone for TransactionResult
Source§fn clone(&self) -> TransactionResult
fn clone(&self) -> TransactionResult
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 moreAuto Trait Implementations§
impl Freeze for TransactionResult
impl RefUnwindSafe for TransactionResult
impl Send for TransactionResult
impl Sync for TransactionResult
impl Unpin for TransactionResult
impl UnsafeUnpin for TransactionResult
impl UnwindSafe for TransactionResult
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