Module collector

Source

Structs§

AbortPerform
AbortPerform is a flag that can be safely shared across threads to be able to cancel Curl perform operation via progress function of the Collector.
FileInfo
Stores the path for the downloaded file or the uploaded file. Internally it will also monitor the bytes transferred and the Download/Upload speed.
TransferSpeed
This is an information about the transfer(Download/Upload) speed that will be sent across tasks. It is useful to get the transfer speed and displayed it according to user’s application.

Enums§

Collector
Collector::File(FileInfo) is used to be able to download and upload files. Collector::Ram(Vec<u8>) is used to store response body into Memory. Collector::RamWithHeaders(Vec<u8>, Vec<u8>) is used to store response body into Memory and with complete headers. Collector::FileAndHeaders(FileInfo, Vec<u8>) is used to be able to download and upload files and with complete headers.

Traits§

ExtendedHandler
This is an extended trait for the curl::easy::Handler trait.