pub struct Progress {
pub received: u16,
pub lost: u16,
pub rows: u16,
pub highest: u16,
pub done: bool,
}Expand description
How far a fragmentation session has got, small enough to write down.
A device that loses power partway through a firmware download keeps its block storage and its working storage in flash; this is the handful of numbers it needs beside them to carry on where it left off, rather than asking for the whole image again.
Fields§
§received: u16How many fragments arrived, coded, uncoded and repeated.
lost: u16How many uncoded fragments were lost.
rows: u16How many rows of the system are filled in.
highest: u16The highest uncoded fragment number seen.
done: boolWhether the block is whole.
Trait Implementations§
impl Copy for Progress
impl Eq for Progress
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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