pub struct PipelineResult { /* private fields */ }Expand description
Pipeline result wrapper for easier handling
Implementations§
Source§impl PipelineResult
impl PipelineResult
Sourcepub fn next<T>(&mut self) -> RedisResult<T>
pub fn next<T>(&mut self) -> RedisResult<T>
Get the next result from the pipeline
§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 PipelineResult
impl Clone for PipelineResult
Source§fn clone(&self) -> PipelineResult
fn clone(&self) -> PipelineResult
Returns a duplicate of the value. Read more
1.0.0 · 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 PipelineResult
impl RefUnwindSafe for PipelineResult
impl Send for PipelineResult
impl Sync for PipelineResult
impl Unpin for PipelineResult
impl UnwindSafe for PipelineResult
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