rusty-cat 0.1.4

Async HTTP client for resumable file upload and download.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone)]
pub struct ChunkOutcome {
    /// Next byte offset to continue transfer from.
    ///
    /// Range: `0..=total_size`.
    pub next_offset: u64,
    /// Total remote or local file size used by current transfer session.
    ///
    /// Range: `>= 0`.
    pub total_size: u64,
    /// Whether the transfer is fully completed after this chunk.
    pub done: bool,
    /// Optional payload attached when the transfer reaches completion.
    ///
    /// For upload tasks this is populated from upload protocol
    /// `complete_upload` return value; download tasks usually keep `None`.
    pub completion_payload: Option<String>,
}