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.
TaskStartedThe task has begun its operation.
TaskEndedThe task has concluded its operation.
ReceivedChunkReceived 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. |
WroteChunkWrote a chunk of bytes to the filesystem.
Fields of WroteChunk
index: u64 | The chunk's index. |
byte_count: u64 | The number of bytes written. |