pub struct WaitForFunctionBuilder<'a> {
inner: Weak<Frame>,
args: WaitForFunctionArgs<'a>,
err: Option<Error>,
}Fields§
§inner: Weak<Frame>§args: WaitForFunctionArgs<'a>§err: Option<Error>Implementations§
Source§impl<'a> WaitForFunctionBuilder<'a>
impl<'a> WaitForFunctionBuilder<'a>
pub(crate) fn new(inner: Weak<Impl>, expression: &'a str) -> Self
pub async fn wait_for_function(self) -> Result<JsHandle, Arc<Error>>
pub fn arg<T>(self, x: &T) -> Selfwhere
T: Serialize,
Sourcepub fn polling(self, x: Polling) -> Self
pub fn polling(self, x: Polling) -> Self
If polling is 'raf', then expression is constantly executed in requestAnimationFrame callback. If polling is a
number, then it is treated as an interval in milliseconds at which the function would be executed. Defaults to raf.
pub fn timeout(self, x: f64) -> Self
pub fn clear_polling(self) -> Self
pub fn clear_timeout(self) -> Self
pub fn clear_arg(self) -> Self
Auto Trait Implementations§
impl<'a> Freeze for WaitForFunctionBuilder<'a>
impl<'a> !RefUnwindSafe for WaitForFunctionBuilder<'a>
impl<'a> Send for WaitForFunctionBuilder<'a>
impl<'a> Sync for WaitForFunctionBuilder<'a>
impl<'a> Unpin for WaitForFunctionBuilder<'a>
impl<'a> !UnwindSafe for WaitForFunctionBuilder<'a>
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