pub struct BootProgress {
pub step: u32,
pub total: u32,
pub label: String,
}Expand description
Progress event payload emitted during boot as allframe-tauri:boot-progress.
Frontend can listen for this to render a splash/loading screen:
import { listen } from "@tauri-apps/api/event";
await listen("allframe-tauri:boot-progress", (e) => {
// e.payload: { step: 2, total: 3, label: "Projections ready" }
});Fields§
§step: u32Current step number (1-indexed).
total: u32Total number of steps declared in on_boot.
label: StringHuman-readable label for this step.
Trait Implementations§
Source§impl Clone for BootProgress
impl Clone for BootProgress
Source§fn clone(&self) -> BootProgress
fn clone(&self) -> BootProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootProgress
impl Debug for BootProgress
Auto Trait Implementations§
impl Freeze for BootProgress
impl RefUnwindSafe for BootProgress
impl Send for BootProgress
impl Sync for BootProgress
impl Unpin for BootProgress
impl UnsafeUnpin for BootProgress
impl UnwindSafe for BootProgress
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