Struct cassandra_cpp::SessionFuture
[−]
[src]
pub struct SessionFuture(_);
The future result of an attempt to create a new Cassandra session It can be waited on, polled or a callback can be attached.
Methods
impl SessionFuture
[src]
fn wait(&mut self) -> Result<()>
blocks until the session connects or errors out
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) -> 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