pub struct RuntimeDrain {
pub drained_messages: usize,
pub dispatched_actions: usize,
pub redraw_all: bool,
pub redraw_windows: Vec<LogicalWindowId>,
pub remaining: bool,
}Expand description
Result of applying one bounded mailbox batch to a UI-local runtime.
Actions are already appended to the runtime when returned. Redraw flags are
host intents, not runtime invalidations. remaining indicates one prefetched
message is retained and another wake was requested.
§Examples
use ailloli_ui_runtime::app::RuntimeDrain;
let drain = RuntimeDrain { drained_messages: 2, dispatched_actions: 1,
redraw_all: true, redraw_windows: vec![], remaining: false };
assert_eq!(drain.dispatched_actions, 1);Fields§
§drained_messages: usizeTotal messages applied in this batch, at most 256.
dispatched_actions: usizeAction messages appended to the runtime action queue.
redraw_all: boolWhether at least one global-redraw message was applied.
redraw_windows: Vec<LogicalWindowId>Logical windows requested for redraw, in applied message order.
remaining: boolWhether a prefetched 257th message remains pending.
Trait Implementations§
Source§impl Clone for RuntimeDrain
impl Clone for RuntimeDrain
Source§fn clone(&self) -> RuntimeDrain
fn clone(&self) -> RuntimeDrain
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 moreSource§impl Debug for RuntimeDrain
impl Debug for RuntimeDrain
Source§impl Default for RuntimeDrain
impl Default for RuntimeDrain
Source§fn default() -> RuntimeDrain
fn default() -> RuntimeDrain
Returns the “default value” for a type. Read more
Source§impl PartialEq for RuntimeDrain
impl PartialEq for RuntimeDrain
impl Eq for RuntimeDrain
impl StructuralPartialEq for RuntimeDrain
Auto Trait Implementations§
impl Freeze for RuntimeDrain
impl RefUnwindSafe for RuntimeDrain
impl Send for RuntimeDrain
impl Sync for RuntimeDrain
impl Unpin for RuntimeDrain
impl UnwindSafe for RuntimeDrain
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.