pub struct MultiProgress;Expand description
A component for displaying multiple concurrent progress indicators.
§Visual Format
┌─Progress─────────────────────────┐
│ ● Chapter 1 50% ████████░░░ │
│ ○ Chapter 2 0% ░░░░░░░░░░░ │
│ ✓ Chapter 3 100% ███████████ │
│ ✗ Chapter 4 Error: Timeout │
└──────────────────────────────────┘Trait Implementations§
Source§impl Component for MultiProgress
impl Component for MultiProgress
Source§type State = MultiProgressState
type State = MultiProgressState
The component’s internal state type. Read more
Source§type Message = MultiProgressMessage
type Message = MultiProgressMessage
Messages this component can receive. Read more
Source§type Output = MultiProgressOutput
type Output = MultiProgressOutput
Messages this component can emit to its parent. Read more
Source§fn update(state: &mut Self::State, msg: Self::Message) -> Option<Self::Output>
fn update(state: &mut Self::State, msg: Self::Message) -> Option<Self::Output>
Update component state based on a message. Read more
Source§fn handle_event(state: &Self::State, event: &Event) -> Option<Self::Message>
fn handle_event(state: &Self::State, event: &Event) -> Option<Self::Message>
Maps an input event to a component message. Read more
Source§fn view(state: &Self::State, frame: &mut Frame<'_>, area: Rect, theme: &Theme)
fn view(state: &Self::State, frame: &mut Frame<'_>, area: Rect, theme: &Theme)
Render the component to the given area. Read more
Source§impl Focusable for MultiProgress
impl Focusable for MultiProgress
Source§fn is_focused(state: &Self::State) -> bool
fn is_focused(state: &Self::State) -> bool
Returns true if this component is currently focused.
Source§fn set_focused(state: &mut Self::State, focused: bool)
fn set_focused(state: &mut Self::State, focused: bool)
Sets the focus state of this component.
Auto Trait Implementations§
impl Freeze for MultiProgress
impl RefUnwindSafe for MultiProgress
impl Send for MultiProgress
impl Sync for MultiProgress
impl Unpin for MultiProgress
impl UnsafeUnpin for MultiProgress
impl UnwindSafe for MultiProgress
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more