The dst and src arguments are stored in the schedule as references. The associated objects must persist for the lifetime of the constructed schedule.