Enum squid::download::Message
[−]
[src]
pub enum Message { ChosenStrategy(Strategy), TaskStarted, TaskEnded, ReceivedChunk { index: u64, content_byte_range: Range<u64>, }, WroteChunk { index: u64, byte_count: u64, }, }
Enumerates possible messages emitted by a download task.
Variants
ChosenStrategy(Strategy)
Details the chosen download strategy.
TaskStarted
The task has begun its operation.
TaskEnded
The task has concluded its operation.
ReceivedChunk
Received a chunk of bytes from the server.
Fields of ReceivedChunk
index: u64 | The chunk's index. |
content_byte_range: Range<u64> | The chunk's byte range. |
WroteChunk
Wrote a chunk of bytes to the filesystem.
Fields of WroteChunk
index: u64 | The chunk's index. |
byte_count: u64 | The number of bytes written. |