pub struct AnimationFrame {
pub content: StyledString,
pub next_frame_idx: usize,
}
Expand description
This struct represents the content of a single loading or error animation frame,
produced by a animation function of the AsyncView
. Read the documentation
of the default_animation
or default_error
to see how to implement your own
animation functions.
Fields§
§content: StyledString
A StyledString
that will be displayed inside a TextView
for this frame.
next_frame_idx: usize
The next frame_idx
passed to the animation function when calculating
the next frame.
Auto Trait Implementations§
impl Freeze for AnimationFrame
impl RefUnwindSafe for AnimationFrame
impl Send for AnimationFrame
impl Sync for AnimationFrame
impl Unpin for AnimationFrame
impl UnwindSafe for AnimationFrame
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