Struct cassandra_cpp::CloseFuture
[−]
[src]
pub struct CloseFuture(_);
The future result of a session close 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 CloseFuture
[src]
fn wait(&self) -> Result<()>
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(&self) -> Result<()>
Gets the error code from future. If the future is not ready this method will wait for the future to be set.
fn get(&self) -> PreparedStatement
Gets the error message from future. If the future is not ready this method will wait for the future to be set.