Skip to main content

BatchPreparedCommand

Trait BatchPreparedCommand 

Source
pub trait BatchPreparedCommand<R = ()> {
    // Required methods
    fn queue(self);
    fn forget(self);
}
Expand description

Extension trait dedicated to PreparedCommand to add specific methods for the Pipeline & the Transaction executors

§The response type is ignored here

Queuing discards a PreparedCommand’s response type. The type on Pipeline::execute decides the decoding. Write ::<()> on a queued command. Any other type compiles and means nothing.

Required Methods§

Source

fn queue(self)

Queue a command. Its response type is ignored — see the trait docs.

Source

fn forget(self)

Queue a command and forget its response.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§