pub trait Fulfillable<T> {
// Required method
fn fulfil(self, t: T) -> Result<(), PromiseErr>;
}Expand description
Anything that can be fulfilled with a value of type T.
Required Methods§
Sourcefn fulfil(self, t: T) -> Result<(), PromiseErr>
fn fulfil(self, t: T) -> Result<(), PromiseErr>
Fulfil self with the value t
Returns a PromiseErr if unsuccessful.