Struct gj::PromiseFulfiller
[−]
[src]
pub struct PromiseFulfiller<T, E> where
T: 'static,
E: 'static + FulfillerDropped, { /* fields omitted */ }
A handle that can be used to fulfill or reject a promise. If you think of a promise as the receiving end of a oneshot channel, then this is the sending end.
When a PromiseFulfiller<T,E>
is dropped without first receiving a fulfill()
, reject()
, or
resolve()
call, its promise is rejected with the error value E::fulfiller_dropped()
.
Methods
impl<T, E> PromiseFulfiller<T, E> where
T: 'static,
E: 'static + FulfillerDropped,
[src]
T: 'static,
E: 'static + FulfillerDropped,
Trait Implementations
impl<T, E> Drop for PromiseFulfiller<T, E> where
T: 'static,
E: 'static + FulfillerDropped,
[src]
T: 'static,
E: 'static + FulfillerDropped,