[−][src]Trait sealrs::futures::promise::Promise
Required methods
fn try_complete(&mut self, result: Result<V, E>) -> bool
Implementation of this method must try to complete future
fn future(&self) -> WrappedFuture<V, E>
Returns copy of the inner future as wrapper object
Provided methods
fn complete(&mut self, result: Result<V, E>) -> bool
Completes promise with some result. Attention, promise may be completed only once and repeat attempt to do this will cause to panic!
fn success(&mut self, value: V) -> bool
Completes promise with success result
fn failure(&mut self, cause: E) -> bool
Completes promise with failed result