[][src]Trait polyhorn_channel::UseChannel

pub trait UseChannel {
    fn use_channel<T, C, F>(&mut self, key: Key, closure: C) -> Sender<T>
    where
        T: Send + 'static,
        C: FnOnce(Receiver<T>) -> F + 'static,
        F: Future<Output = ()>
; }

Required methods

fn use_channel<T, C, F>(&mut self, key: Key, closure: C) -> Sender<T> where
    T: Send + 'static,
    C: FnOnce(Receiver<T>) -> F + 'static,
    F: Future<Output = ()>, 

Loading content...

Implementors

impl<M> UseChannel for M where
    M: UseAsync + UseReference + Link
[src]

Loading content...