pub fn send<T: Into<Vec<u8>> + Send + 'static, E: ErrorType>( data: T, ) -> impl BehaviourFunction<E>
Returns a [BehaviourFuntion] which sends the provided data, and then yields.
BehaviourFuntion
data