pub(crate) struct Part {
pub start: u64,
pub end: Option<u64>,
pub saved: u64,
pub connection: Option<Live>,
pub failures: u32,
pub retry_at: Option<Instant>,
}Expand description
A stretch of the file, and how much of it is saved.
Fields§
§start: u64§end: Option<u64>Where the next part starts; None for a part that runs to the end of the file.
saved: u64The bytes saved from start on.
connection: Option<Live>The connection fetching it, unless it is paused, waiting to retry, or done.
failures: u32The failures in a row that may pass, since it last received data.
retry_at: Option<Instant>When to try it again, after such a failure.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more