Struct cursive_async_view::AnimationFrame
source · [−]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.