Enum rust_libretro::types::MessageProgress
source · [−]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
sourceimpl MessageProgress
impl MessageProgress
pub fn indeterminate() -> Self
pub fn percentage(value: u8) -> Option<Self>
pub fn as_i8(&self) -> i8
Auto Trait Implementations
impl RefUnwindSafe for MessageProgress
impl Send for MessageProgress
impl Sync for MessageProgress
impl Unpin for MessageProgress
impl UnwindSafe for MessageProgress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
