pub struct MockModalFrame {
pub script: VecDeque<UiEvent>,
pub delivered: usize,
}Expand description
One frame of the scripted modal-loop stack.
A frame is the Mock analogue of a nested OS message pump (MessageBoxW,
drag-and-drop, gtk_dialog_run): while it is open, its script is what the
nested loop delivers, and the outer event queue stays parked until the
loop closes.
Fields§
§script: VecDeque<UiEvent>Events the nested pump delivers, FIFO.
delivered: usizeHow many scripted events the nested pump has delivered so far.
Trait Implementations§
Source§impl Clone for MockModalFrame
impl Clone for MockModalFrame
Source§impl Debug for MockModalFrame
impl Debug for MockModalFrame
Auto Trait Implementations§
impl Forget for MockModalFrame
impl Freeze for MockModalFrame
impl Move for MockModalFrame
impl RefUnwindSafe for MockModalFrame
impl Send for MockModalFramewhere
RawVecInner: Send,
impl Sync for MockModalFramewhere
RawVecInner: Sync,
impl Unpin for MockModalFrame
impl UnsafeUnpin for MockModalFrame
impl UnwindSafe for MockModalFramewhere
RawVecInner: 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