Struct cassandra_cpp::ResultFuture
[−]
[src]
#[must_use]pub struct ResultFuture(_);
The future result of an operation. 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 ResultFuture
[src]
fn wait(&mut self) -> Result<CassResult>
Blocks until the future returns or times out
fn error_code(&mut self) -> Result<CassResult>
Gets the error code from future. If the future is not ready this method will wait for the future to be set.
fn error_message(&mut self) -> String
Gets the error message from future. If the future is not ready this method will wait for the future to be set.
fn get(&mut self) -> Option<CassResult>
Gets the result of a successful future. If the future is not ready this method will wait for the future to be set. a None response indicates that there was an error