pub enum RefreshPhase {
Drag,
Armed,
Snap,
RefreshIndicator,
Done,
Cancel,
}Expand description
Where a refresh area is in its cycle.
Variants§
Drag
A finger is pulling, but not far enough yet.
Armed
A finger is pulling past the threshold: releasing now refreshes.
Snap
Released while armed: settling to the resting displacement.
RefreshIndicator
The application is working, and says so.
Done
The work is over: scaling away.
Cancel
Released short of the threshold: sliding back out of sight.
Implementations§
Source§impl RefreshPhase
impl RefreshPhase
Sourcepub fn is_dragging(&self) -> bool
pub fn is_dragging(&self) -> bool
true while a finger still owns the pull.
Trait Implementations§
Source§impl Clone for RefreshPhase
impl Clone for RefreshPhase
impl Copy for RefreshPhase
Source§impl Debug for RefreshPhase
impl Debug for RefreshPhase
impl Eq for RefreshPhase
Source§impl PartialEq for RefreshPhase
impl PartialEq for RefreshPhase
impl StructuralPartialEq for RefreshPhase
Auto Trait Implementations§
impl Freeze for RefreshPhase
impl RefUnwindSafe for RefreshPhase
impl Send for RefreshPhase
impl Sync for RefreshPhase
impl Unpin for RefreshPhase
impl UnsafeUnpin for RefreshPhase
impl UnwindSafe for RefreshPhase
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