Struct cassandra_cpp::CassFuture
source · [−]pub struct CassFuture<T> { /* private fields */ }
Expand description
A future representing the result of a Cassandra driver operation.
On success, returns a result of type T
. On failure, returns a Cassandra error.
When constructing this take care to supply the correct type argument, since it will
be used to control how the result is extracted from the underlying Cassandra
driver future (see Completable
).
Implementations
sourceimpl<T: Completable> CassFuture<T>
impl<T: Completable> CassFuture<T>
Trait Implementations
sourceimpl<T: Debug> Debug for CassFuture<T>
impl<T: Debug> Debug for CassFuture<T>
sourceimpl<T> Drop for CassFuture<T>
impl<T> Drop for CassFuture<T>
sourceimpl<T: Completable> Future for CassFuture<T>
impl<T: Completable> Future for CassFuture<T>
A Cassandra future is a normal Rust future.
impl<T> Send for CassFuture<T> where
T: Send,
impl<T> Sync for CassFuture<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for CassFuture<T>
impl<T> Unpin for CassFuture<T> where
T: Unpin,
impl<T> !UnwindSafe for CassFuture<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type IntoFuture = F
type IntoFuture = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.