pub struct ShutdownProgressDisplay { /* private fields */ }Expand description
Shutdown progress display.
Implementations§
Source§impl ShutdownProgressDisplay
impl ShutdownProgressDisplay
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new shutdown progress display.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set a custom theme.
Sourcepub fn progress_width(self, width: usize) -> Self
pub fn progress_width(self, width: usize) -> Self
Set a custom progress bar width.
Sourcepub fn render(&self, progress: &ShutdownProgress) -> String
pub fn render(&self, progress: &ShutdownProgress) -> String
Render the progress snapshot.
Trait Implementations§
Source§impl Clone for ShutdownProgressDisplay
impl Clone for ShutdownProgressDisplay
Source§fn clone(&self) -> ShutdownProgressDisplay
fn clone(&self) -> ShutdownProgressDisplay
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShutdownProgressDisplay
impl RefUnwindSafe for ShutdownProgressDisplay
impl Send for ShutdownProgressDisplay
impl Sync for ShutdownProgressDisplay
impl Unpin for ShutdownProgressDisplay
impl UnsafeUnpin for ShutdownProgressDisplay
impl UnwindSafe for ShutdownProgressDisplay
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