fn copy(
body: impl Read,
id: usize,
outlet: &Outlet,
events: &Sender<Event>,
) -> Result<Option<()>, ConnectionError>Expand description
Copies body through outlet: Some(()) at the end of the body or once the outlet is
full, None when the download stopped listening first.