pub trait PullRefreshBuilder: Sized {
// Required method
fn on_refresh(self, f: impl Fn() + 'static) -> Self;
}Expand description
Builder methods of PullRefresh, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.
Required Methods§
Sourcefn on_refresh(self, f: impl Fn() + 'static) -> Self
fn on_refresh(self, f: impl Fn() + 'static) -> Self
Run f when a refresh BEGINS (user pull, dayscript toggle, or programmatic
refreshing.set(true) routed through a pull). Start the reload here and set the bound
signal back to false when it completes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".