pub struct UiUpdateQueue { /* private fields */ }Implementations§
Source§impl UiUpdateQueue
impl UiUpdateQueue
pub fn new() -> Self
pub fn set_wake(&self, wake: UiWake)
pub fn clear_wake(&self)
pub fn request_frame(&self)
pub fn take_frame_request(&self) -> bool
pub fn invalidate(&self, owner: ComponentId, invalidation_id: UiId)
pub fn request_focus(&self, target: UiId)
pub fn take_focus_request(&self) -> Option<UiId>
pub fn enqueue<T>(
&self,
owner: ComponentId,
invalidation_id: UiId,
id: HookId,
value: T,
)where
T: Send + 'static,
pub fn enqueue_update<T>(
&self,
owner: ComponentId,
invalidation_id: UiId,
id: HookId,
update: impl FnOnce(&mut T) + Send + 'static,
)where
T: 'static,
pub fn apply( &self, store: &HookStateStore, components: &ComponentTree, ) -> Vec<UiId>
pub fn is_empty(&self) -> bool
pub fn clear(&self)
Trait Implementations§
Source§impl Default for UiUpdateQueue
impl Default for UiUpdateQueue
Source§fn default() -> UiUpdateQueue
fn default() -> UiUpdateQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for UiUpdateQueue
impl RefUnwindSafe for UiUpdateQueue
impl Send for UiUpdateQueue
impl Sync for UiUpdateQueue
impl Unpin for UiUpdateQueue
impl UnsafeUnpin for UiUpdateQueue
impl UnwindSafe for UiUpdateQueue
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