Struct cassandra_cpp::Future [] [src]

pub struct Future(_);

A CQL Future representing the status of any asynchronous calls to Cassandra

Methods

impl Future
[src]

Sets a callback that is called when a future is set

Gets the set status of the future.

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.

Wait for the future to be set or timeout.

Gets the result of a successful future. If the future is not ready this method will wait for the future to be set.

Gets the error result from a future that failed as a result of a server error. If the future is not ready this method will wait for the future to be set.

Gets the error message from future. If the future is not ready this method will wait for the future to be set.

Gets a the number of custom payload items from a response future. If the future is not ready this method will wait for the future to be set.

Gets a custom payload item from a response future at the specified index. If the future is not ready this method will wait for the future to be set.

Trait Implementations

impl Debug for Future
[src]

Formats the value using the given formatter.

impl Drop for Future
[src]

Frees a future instance. A future can be freed anytime.