#[repr(C)]pub enum Update {
DoNothing = 0,
RefreshDom = 1,
RefreshDomAllWindows = 2,
}Expand description
Specifies if the screen should be updated after the callback function has returned
Variants§
DoNothing = 0
The screen does not need to redraw after the callback has been called
RefreshDom = 1
After the callback is called, the screen needs to redraw (layout() function being called again)
RefreshDomAllWindows = 2
The layout has to be re-calculated for all windows
Implementations§
Trait Implementations§
Source§impl Ord for Update
impl Ord for Update
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Update
impl PartialOrd for Update
impl Copy for Update
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
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