Struct forky_web::HtmlEventWaiter
source · pub struct HtmlEventWaiter { /* private fields */ }
Implementations§
source§impl HtmlEventWaiter
impl HtmlEventWaiter
pub fn new(name: &'static str) -> Self
pub fn new_with_target( name: &'static str, target: impl Into<EventTarget> ) -> Self
pub fn rejects(self) -> Self
pub fn instantiate(self) -> HtmlEventWaiterInstance
pub async fn wait(self) -> Result<JsValue, JsValue>
pub async fn wait_or_timeout( self, duration: Duration ) -> Result<JsValue, JsValue>
pub async fn await_first( items: impl IntoIterator<Item = HtmlEventWaiter> ) -> Result<JsValue, JsValue>
Auto Trait Implementations§
impl Freeze for HtmlEventWaiter
impl RefUnwindSafe for HtmlEventWaiter
impl !Send for HtmlEventWaiter
impl !Sync for HtmlEventWaiter
impl Unpin for HtmlEventWaiter
impl UnwindSafe for HtmlEventWaiter
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