Struct zng_app::update::ContextUpdates
source · 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§
§events: Vec<EventUpdate>
Events to notify.
When this is not empty update
is true
.
update: bool
Update requested.
When this is true
, update_widgets
may contain widgets, if not then only app extensions must update.
info: bool
Info rebuild requested.
When this is true
, info_widgets
may contain widgets, if not then only app extensions must update.
layout: bool
Layout requested.
When this is true
, layout_widgets
may contain widgets, if not then only app extensions must update.
render: bool
Render requested.
When this is true
, render_widgets
or render_update_widgets
may contain widgets, if not then only app extensions must update.
update_widgets: WidgetUpdates
Update targets.
When this is not empty update
is true
.
info_widgets: InfoUpdates
Info rebuild targets.
When this is not empty info
is true
.
layout_widgets: LayoutUpdates
Layout targets.
When this is not empty layout
is true
.
render_widgets: RenderUpdates
Full render targets.
When this is not empty render
is true
.
render_update_widgets: RenderUpdates
Render 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