Skip to main content

Fulfillable

Trait Fulfillable 

Source
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§

Source

fn fulfil(self, t: T) -> Result<(), PromiseErr>

Fulfil self with the value t

Returns a PromiseErr if unsuccessful.

Implementors§

Source§

impl<T> Fulfillable<T> for KPromise<T>
where T: Send,