snedfile - Rust cross-platform sendfile() abstractions
Natively supported using sendfile()
are Linux, Android, MacOS, iOS, FreeBSD and DragonFlyBSD,
and every other std
-platform using a fallback.
Usage
This library is designed to make transmitting files as easy as possible. If you have a file and a TCP stream, all you have to do is
use send_file;
Trivial errors as well as optimally using the native system capabilities are handled by the implementation.
Alternatively, there is a more low-level solution:
use send_exact;