into_behaviour

Function into_behaviour 

Source
pub fn into_behaviour<E, C>(closure: C) -> impl BehaviourFunction<E>
where E: ErrorType, C: for<'a> FnOnce(&'a mut InSender<E>, &'a mut OutReceiver) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>> + Send + 'static,
Expand description

Help the compiler to assign appropriate lifetimes to inputs and outputs of BehaviourFunction-equivalent closure.