pub enum MessageProgress {
Indeterminate,
Percentage(u8),
}Expand description
Used in environment::set_message_ext to signal some ongoing progress.
Variants§
Indeterminate
The message is unmetered or the progress cannot be determined.
Percentage(u8)
The progress as a percentage (0 - 100).
Implementations§
Source§impl MessageProgress
impl MessageProgress
pub fn indeterminate() -> Self
pub fn percentage(value: u8) -> Option<Self>
pub fn as_i8(&self) -> i8
Auto Trait Implementations§
impl Freeze for MessageProgress
impl RefUnwindSafe for MessageProgress
impl Send for MessageProgress
impl Sync for MessageProgress
impl Unpin for MessageProgress
impl UnsafeUnpin for MessageProgress
impl UnwindSafe for MessageProgress
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