Type Alias fdb::future::FdbFutureUnit

source ·
pub type FdbFutureUnit = FdbFuture<()>;
Expand description

Represents the asynchronous result of a function that has no return value.

Aliased Type§

struct FdbFutureUnit { /* private fields */ }

Implementations§

source§

impl<T> FdbFuture<T>

source

pub unsafe fn is_ready(&self) -> bool

Returns true if the FDB future is ready, false otherwise, without blocking. A FDB future is ready either when it has received a value or has been set to an error state.

Safety

You should not use this API. It exists to support binding tester.

Trait Implementations§

source§

impl<T: Debug> Debug for FdbFuture<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Drop for FdbFuture<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<T> Future for FdbFuture<T>where T: FdbFutureGet + Unpin,

§

type Output = Result<T, FdbError>

The type of value produced on completion.
source§

fn poll( self: Pin<&mut FdbFuture<T>>, cx: &mut Context<'_> ) -> Poll<FdbResult<T>>

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
source§

impl<T> Send for FdbFuture<T>

source§

impl<T> Sync for FdbFuture<T>