Introduce a specific type for the action that gets called when processing a stream of things to copy.

This paves the way for DirectoryCopyDetails, LinkCopyDetails etc.