Struct completable_future::CompletableFutureSignal [] [src]

pub struct CompletableFutureSignal<V, E> { /* fields omitted */ }

A handle to the future state. When you create a completable future, you should also create a signal that somebody can use to complete the future.

Methods

impl<V, E> CompletableFutureSignal<V, E>
[src]

[src]

Complete the associated CompletableFuture. This method can be called safely across multiple threads multiple times, but only the winning call would mutate the future; other calls will be rendered noop.

Returns whether the call successfully mutates the future.

[src]

Error the associated CompletableFuture. This method can be called safely across multiple threads multiple times, but only the winning call would mutate the future; other calls will be rendered noop.

Returns whether the call successfully mutates the future.

Trait Implementations

impl<V: Clone, E: Clone> Clone for CompletableFutureSignal<V, E>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<V, E> Send for CompletableFutureSignal<V, E> where
    E: Send,
    V: Send

impl<V, E> Sync for CompletableFutureSignal<V, E> where
    E: Send,
    V: Send