Skip to main content

PullRefreshBuilder

Trait PullRefreshBuilder 

Source
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§

Source

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".

Implementors§

Source§

impl<DecoratedInner> PullRefreshBuilder for Decorated<DecoratedInner>
where DecoratedInner: PullRefreshBuilder + Piece,

Source§

impl<P> PullRefreshBuilder for PullRefresh<P>
where P: Piece,