Struct cassandra_cpp::PreparedFuture
[−]
[src]
pub struct PreparedFuture(_);
The future result of an prepared statement. It can represent a result if the operation completed successfully or an error if the operation failed. It can be waited on, polled or a callback can be attached.
Methods
impl PreparedFuture
[src]
fn wait(&mut self) -> Result<PreparedStatement>
Wait for the future to be set with either a result or error.
Important: Do not wait in a future callback. Waiting in a future callback will cause a deadlock.
fn error_code(&mut self) -> Result<PreparedStatement>
Gets the error code from future. If the future is not ready this method will wait for the future to be set.
fn get(&mut self) -> PreparedStatement
Gets the error message from future. If the future is not ready this method will wait for the future to be set.