pub struct PopupFeed { /* private fields */ }Expand description
See Engine::popup_feed. Carries dialogs too: they need the same
off-thread path, since the page’s script is blocked until answered.
Implementations§
Source§impl PopupFeed
impl PopupFeed
Sourcepub fn next_dialog_id(&self) -> u64
pub fn next_dialog_id(&self) -> u64
A fresh dialog id.
Sourcepub fn answer(&self, id: u64, answer: DialogAnswer)
pub fn answer(&self, id: u64, answer: DialogAnswer)
Answer dialog id. The engine applies it on its next check
(within a few milliseconds), from any thread.
Sourcepub fn take_answer(&self, id: u64) -> Option<DialogAnswer>
pub fn take_answer(&self, id: u64) -> Option<DialogAnswer>
The answer for id, once given.
pub fn push(&self, e: PopupEvent)
Sourcepub fn drain(&self) -> Vec<PopupEvent>
pub fn drain(&self) -> Vec<PopupEvent>
Events since the last drain, oldest first.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PopupFeed
impl Forget for PopupFeed
impl Move for PopupFeed
impl RefUnwindSafe for PopupFeed
impl Send for PopupFeed
impl Sync for PopupFeed
impl Unpin for PopupFeed
impl UnsafeUnpin for PopupFeed
impl UnwindSafe for PopupFeed
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