pub struct StartupTimings {
pub ensure_central_repo_ms: u128,
pub open_store_ms: u128,
pub migrate_legacy_tool_keys_ms: u128,
pub skill_count: usize,
pub reindex_from_metadata_ms: Option<u128>,
pub restore_sync_included_ms: u128,
pub restore_sync_included_changed: bool,
pub write_all_from_db_ms: Option<u128>,
pub apply_scenario_ms: u128,
pub apply_scenario_kind: &'static str,
pub total_ms: u128,
}Expand description
Per-stage timings collected during initialize_store. The struct is
returned to the caller so the log lines can be emitted once
tauri_plugin_log is registered — anything logged from inside this
function would otherwise be dropped because the logger isn’t installed
until later in tauri::Builder::setup. See issue #153.
Fields§
§ensure_central_repo_ms: u128§open_store_ms: u128§migrate_legacy_tool_keys_ms: u128§skill_count: usize§reindex_from_metadata_ms: Option<u128>§restore_sync_included_ms: u128§restore_sync_included_changed: bool§write_all_from_db_ms: Option<u128>§apply_scenario_ms: u128§apply_scenario_kind: &'static str“default_startup” (Tauri app) or “cli” (CLI bin). Defaults to
"unknown" so a struct that escapes initialize_store_inner
without being fully populated still produces an obvious value in
the log instead of an empty string.
total_ms: u128Implementations§
Trait Implementations§
Source§impl Clone for StartupTimings
impl Clone for StartupTimings
Source§impl Debug for StartupTimings
impl Debug for StartupTimings
Auto Trait Implementations§
impl Forget for StartupTimings
impl Freeze for StartupTimings
impl Move for StartupTimings
impl RefUnwindSafe for StartupTimings
impl Send for StartupTimings
impl Sync for StartupTimings
impl Unpin for StartupTimings
impl UnsafeUnpin for StartupTimingswhere
&'static str: UnsafeUnpin,
impl UnwindSafe for StartupTimingswhere
&'static str: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.