pub struct ProgressBar { /* private fields */ }Implementations§
Source§impl ProgressBar
impl ProgressBar
pub fn new( config: ProgressBarConfig, builder: &mut SceneBuilder, app_sender: AppSender, ) -> Result<ProgressBar, Error>
Sourcepub fn set_percent(&mut self, scene: &mut Scene, percent_complete: f32)
pub fn set_percent(&mut self, scene: &mut Scene, percent_complete: f32)
Set progress between 0 to 100 percent
Sourcepub fn set_progress(&mut self, scene: &mut Scene, progress: f32)
pub fn set_progress(&mut self, scene: &mut Scene, progress: f32)
Set progress from 0.0 to 1.0
Sourcepub fn set_internal_progress(&mut self, scene: &mut Scene, progress: f32)
pub fn set_internal_progress(&mut self, scene: &mut Scene, progress: f32)
Set progress from 0 to 1.0
pub fn set_percent_smooth(&mut self, view_key: ViewKey, percent_complete: f32)
Sourcepub fn set_progress_smooth(
&mut self,
view_key: ViewKey,
progress: f32,
elapsed_time: MonotonicDuration,
)
pub fn set_progress_smooth( &mut self, view_key: ViewKey, progress: f32, elapsed_time: MonotonicDuration, )
Set progress from 0.0 to 1.0
pub fn set_color(&mut self, scene: &mut Scene, fg_color: Color, bg_color: Color)
pub fn set_text(&mut self, scene: &mut Scene, text: String)
pub fn set_text_color(&mut self, scene: &mut Scene, color: Color)
pub fn handle_message( &mut self, scene: &mut Scene, view_key: ViewKey, message: ProgressBarMessages, )
Auto Trait Implementations§
impl Freeze for ProgressBar
impl !RefUnwindSafe for ProgressBar
impl !Send for ProgressBar
impl !Sync for ProgressBar
impl Unpin for ProgressBar
impl !UnwindSafe for ProgressBar
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.