#[non_exhaustive]pub struct WindowProgress {
pub value: Option<Percentage>,
pub state: ProgressState,
}Expand description
A window’s progress, shown on its taskbar button or the Dock’s icon.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: Option<Percentage>The share done, from 0 to 1.
state: ProgressStateIts state.
Trait Implementations§
Source§impl Clone for WindowProgress
impl Clone for WindowProgress
impl Copy for WindowProgress
Source§impl Debug for WindowProgress
impl Debug for WindowProgress
Source§impl Default for WindowProgress
impl Default for WindowProgress
Source§impl JsValue for WindowProgress
impl JsValue for WindowProgress
Source§impl PartialEq for WindowProgress
impl PartialEq for WindowProgress
impl StructuralPartialEq for WindowProgress
Auto Trait Implementations§
impl Forget for WindowProgress
impl Freeze for WindowProgress
impl Move for WindowProgress
impl RefUnwindSafe for WindowProgress
impl Send for WindowProgress
impl Sync for WindowProgress
impl Unpin for WindowProgress
impl UnsafeUnpin for WindowProgress
impl UnwindSafe for WindowProgress
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> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.