[][src]Trait kompact::prelude::Fulfillable

pub trait Fulfillable<T> {
    fn fulfil(self, t: T) -> Result<(), PromiseErr>;
}

Anything that can be fulfilled with a value of type T.

Required methods

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

Fulfil self with the value t

Returns a PromiseErr if unsuccessful.

Loading content...

Implementors

impl<T: Send + Sized> Fulfillable<T> for KPromise<T>[src]

Loading content...