Enum scl_core::progress::ReportState
source · pub enum ReportState {
SetMessage(String),
SetSubMessage(String),
SetMaxProgress(f64),
AddMaxProgress(f64),
SetProgress(f64),
AddProgress(f64),
SetIndeterminateProgress,
HideProgress,
RemoveProgress,
}
Expand description
核心库报告的异步进度的所有枚举
Variants§
SetMessage(String)
设置主要文字信息
SetSubMessage(String)
设置次要文字信息
SetMaxProgress(f64)
设置进度的最大值
AddMaxProgress(f64)
增加/减少进度的最大值
SetProgress(f64)
设置当前进度
AddProgress(f64)
增加/减少当前进度
SetIndeterminateProgress
将进度设置为不定进度模式
HideProgress
隐藏此进度
RemoveProgress
删除此进度
Trait Implementations§
source§impl Clone for ReportState
impl Clone for ReportState
source§fn clone(&self) -> ReportState
fn clone(&self) -> ReportState
Returns a copy 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 RefUnwindSafe for ReportState
impl Send for ReportState
impl Sync for ReportState
impl Unpin for ReportState
impl UnwindSafe for ReportState
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