Struct masonry::debug_logger::DebugLogger
source · pub struct DebugLogger {
pub activated: bool,
pub layout_tree: LayoutTree,
pub widget_states: HashMap<MyWidgetId, StateTree>,
pub global_state: StateTree,
pub event_state: StateTree,
pub logs: HashMap<LogId, DebugLog>,
pub root_logs: Vec<LogId>,
pub snapshots: HashMap<LogId, Snapshot>,
pub span_stack: Vec<LogId>,
pub log_id_counter: LogId,
}
Fields§
§activated: bool
§layout_tree: LayoutTree
§widget_states: HashMap<MyWidgetId, StateTree>
§global_state: StateTree
§event_state: StateTree
§logs: HashMap<LogId, DebugLog>
§root_logs: Vec<LogId>
§snapshots: HashMap<LogId, Snapshot>
§span_stack: Vec<LogId>
§log_id_counter: LogId
Implementations§
source§impl DebugLogger
impl DebugLogger
pub fn new(activated: bool) -> Self
pub fn write_to_file(&self, path: &str)
pub fn push_log(&mut self, important: bool, message: &str)
pub fn push_span(&mut self, message: &str)
pub fn push_important_span(&mut self, message: &str)
pub fn pop_span(&mut self)
pub fn update_widget_state(&mut self, widget: WidgetRef<'_, dyn Widget>)
pub fn get_widget_state(widget: WidgetRef<'_, dyn Widget>) -> StateTree
pub fn get_data( root_widget: WidgetRef<'_, dyn Widget> ) -> (LayoutTree, HashMap<MyWidgetId, StateTree>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugLogger
impl RefUnwindSafe for DebugLogger
impl Send for DebugLogger
impl Sync for DebugLogger
impl Unpin for DebugLogger
impl UnwindSafe for DebugLogger
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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