pub struct SpinnerStyle {
pub frames: SpinnerFrames,
pub spinner_style: Style,
pub label_style: Style,
pub label_position: LabelPosition,
pub separator: &'static str,
}Expand description
Style configuration for spinners
Fields§
§frames: SpinnerFramesSpinner frames to use
spinner_style: StyleStyle for the spinner character
label_style: StyleStyle for the label text
label_position: LabelPositionPosition of the label
separator: &'static strSeparator between spinner and label
Implementations§
Source§impl SpinnerStyle
impl SpinnerStyle
Sourcepub fn new(frames: SpinnerFrames) -> Self
pub fn new(frames: SpinnerFrames) -> Self
Create a new spinner style with specific frames
Sourcepub fn frames(self, frames: SpinnerFrames) -> Self
pub fn frames(self, frames: SpinnerFrames) -> Self
Set the spinner frames
Sourcepub fn label_style(self, style: Style) -> Self
pub fn label_style(self, style: Style) -> Self
Set the label style
Sourcepub fn label_position(self, position: LabelPosition) -> Self
pub fn label_position(self, position: LabelPosition) -> Self
Set the label position
Trait Implementations§
Source§impl Clone for SpinnerStyle
impl Clone for SpinnerStyle
Source§fn clone(&self) -> SpinnerStyle
fn clone(&self) -> SpinnerStyle
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 moreSource§impl Debug for SpinnerStyle
impl Debug for SpinnerStyle
Auto Trait Implementations§
impl Freeze for SpinnerStyle
impl RefUnwindSafe for SpinnerStyle
impl Send for SpinnerStyle
impl Sync for SpinnerStyle
impl Unpin for SpinnerStyle
impl UnwindSafe for SpinnerStyle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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