Skip to main content

RefreshCallback

Type Alias RefreshCallback 

Source
pub type RefreshCallback = Rc<dyn Fn(&mut App) -> Task<()>>;
Expand description

The signature for a function that’s called when the user has dragged a RefreshIndicator far enough to demonstrate that they want the app to refresh. The returned task must complete when the refresh operation is finished.

Aliased Type§

pub struct RefreshCallback { /* private fields */ }