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

Details the chosen download strategy.

The task has begun its operation.

The task has concluded its operation.

Received a chunk of bytes from the server.

Fields of ReceivedChunk

The chunk's index.

The chunk's byte range.

Wrote a chunk of bytes to the filesystem.

Fields of WroteChunk

The chunk's index.

The number of bytes written.

Trait Implementations

impl Debug for Message
[src]

Formats the value using the given formatter.