pub struct MockState {
pub widgets: HashMap<u64, MockWidget>,
pub log: Vec<String>,
pub sink: Option<EventSink>,
pub measure_calls: usize,
pub list_sources: HashMap<u64, ListSource>,
pub app_menu: Vec<String>,
pub context_menus: HashMap<u64, Vec<String>>,
pub windows: Vec<MockWindow>,
pub no_multi_window: bool,
pub pending_windows: bool,
pub pending_opens: Vec<(NodeId, String, String)>,
/* private fields */
}Fields§
§widgets: HashMap<u64, MockWidget>§log: Vec<String>§sink: Option<EventSink>§measure_calls: usize(kind, proposal) measure-call counter for the M1 bounded-measure tests.
list_sources: HashMap<u64, ListSource>Recycling-list row-pull sources, keyed by LIST host handle (docs/list.md). A test drives
the “viewport” through MockProbe::list_bind, simulating what a native list would do.
The app menu as last applied (docs/menus.md) — item titles, probe-visible.
Context menus by widget handle (docs/menus.md) — item titles per handle.
windows: Vec<MockWindow>Secondary windows (docs/windows.md), in open order — probe-visible.
no_multi_window: boolopen_window answers Unsupported (the cover-fallback test harness).
pending_windows: boolopen_window answers Pending (the async-completion test harness); the test
finishes the open through MockProbe::complete_window.
pending_opens: Vec<(NodeId, String, String)>Parked Pending opens: (node, title, kind).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockState
impl !RefUnwindSafe for MockState
impl !Send for MockState
impl !Sync for MockState
impl Unpin for MockState
impl UnsafeUnpin for MockState
impl !UnwindSafe for MockState
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