#[non_exhaustive]pub struct ContextUpdates {
pub events: Vec<EventUpdate>,
pub update: bool,
pub info: bool,
pub layout: bool,
pub render: bool,
pub update_widgets: WidgetUpdates,
pub info_widgets: InfoUpdates,
pub layout_widgets: LayoutUpdates,
pub render_widgets: RenderUpdates,
pub render_update_widgets: RenderUpdates,
}Expand description
Updates that must be reacted by an app owner.
This type is public only for testing, it is the return type for test methods of WINDOW.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.events: Vec<EventUpdate>Events to notify.
When this is not empty update is true.
update: boolUpdate requested.
When this is true, update_widgets
may contain widgets, if not then only app extensions must update.
info: boolInfo rebuild requested.
When this is true, info_widgets
may contain widgets, if not then only app extensions must update.
layout: boolLayout requested.
When this is true, layout_widgets
may contain widgets, if not then only app extensions must update.
render: boolRender requested.
When this is true, render_widgets or render_update_widgets
may contain widgets, if not then only app extensions must update.
update_widgets: WidgetUpdatesUpdate targets.
When this is not empty update is true.
info_widgets: InfoUpdatesInfo rebuild targets.
When this is not empty info is true.
layout_widgets: LayoutUpdatesLayout targets.
When this is not empty layout is true.
render_widgets: RenderUpdatesFull render targets.
When this is not empty render is true.
render_update_widgets: RenderUpdatesRender update targets.
When this is not empty render is true.
Implementations§
Source§impl ContextUpdates
impl ContextUpdates
Sourcepub fn has_updates(&self) -> bool
pub fn has_updates(&self) -> bool
If has events, update, layout or render was requested.
Trait Implementations§
Source§impl BitOr for ContextUpdates
impl BitOr for ContextUpdates
Source§impl BitOrAssign for ContextUpdates
impl BitOrAssign for ContextUpdates
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl Debug for ContextUpdates
impl Debug for ContextUpdates
Source§impl Default for ContextUpdates
impl Default for ContextUpdates
Source§fn default() -> ContextUpdates
fn default() -> ContextUpdates
Auto Trait Implementations§
impl Freeze for ContextUpdates
impl !RefUnwindSafe for ContextUpdates
impl Send for ContextUpdates
impl Sync for ContextUpdates
impl Unpin for ContextUpdates
impl !UnwindSafe for ContextUpdates
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more