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]
pub fn complete(&mut self, value: V) -> bool
[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.
pub fn error(&mut self, error: E) -> bool
[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]
fn clone(&self) -> CompletableFutureSignal<V, E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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,
E: Send,
V: Send,
impl<V, E> Sync for CompletableFutureSignal<V, E> where
E: Send,
V: Send,
E: Send,
V: Send,