pub struct ReloadBuilder {
inner: Weak<Impl>,
args: ReloadArgs,
}Fields§
§inner: Weak<Impl>§args: ReloadArgsImplementations§
Source§impl ReloadBuilder
impl ReloadBuilder
pub(crate) fn new(inner: Weak<Impl>) -> Self
pub async fn reload(self) -> Result<Option<Response>, Arc<Error>>
pub fn timeout(self, x: f64) -> Self
Sourcepub fn wait_until(self, x: DocumentLoadState) -> Self
pub fn wait_until(self, x: DocumentLoadState) -> Self
When to consider operation succeeded, defaults to load. Events can be either:
'domcontentloaded'- consider operation to be finished when theDOMContentLoadedevent is fired.'load'- consider operation to be finished when theloadevent is fired.'networkidle'- consider operation to be finished when there are no network connections for at least500ms.
pub fn clear_timeout(self) -> Self
pub fn clear_wait_until(self) -> Self
Auto Trait Implementations§
impl Freeze for ReloadBuilder
impl RefUnwindSafe for ReloadBuilder
impl Send for ReloadBuilder
impl Sync for ReloadBuilder
impl Unpin for ReloadBuilder
impl UnwindSafe for ReloadBuilder
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