pub enum RestoreProgressEvent {
Operation {
operation: u64,
progress: u64,
},
Step(String),
Transfer {
component: String,
sent: u64,
total: Option<u64>,
},
}Expand description
A progress event emitted while a restore runs.
The enum derives serde::Serialize so it can cross an FFI or wasm boundary.
Variants§
Operation
The device’s own restore progress, from its ProgressMsg: an operation
code and its completion percentage (0-100). This drives the main bar.
Fields
Step(String)
A new host step began, named by the DataType the device requested.
Transfer
Byte progress while streaming a large image (the filesystem over ASR, or a
source boot object such as Cryptex1,SystemOS). total is None when the
size isn’t known ahead of time. Emitted at a throttled cadence, not per chunk.
Trait Implementations§
Source§impl Clone for RestoreProgressEvent
impl Clone for RestoreProgressEvent
Source§impl Debug for RestoreProgressEvent
impl Debug for RestoreProgressEvent
Auto Trait Implementations§
impl Forget for RestoreProgressEvent
impl Freeze for RestoreProgressEvent
impl RefUnwindSafe for RestoreProgressEvent
impl Send for RestoreProgressEvent
impl Sync for RestoreProgressEvent
impl Unpin for RestoreProgressEvent
impl UnsafeUnpin for RestoreProgressEvent
impl UnwindSafe for RestoreProgressEvent
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