Struct zng::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§type Output = ContextUpdates
type Output = ContextUpdates
|
operator.source§fn bitor(self, rhs: ContextUpdates) -> ContextUpdates
fn bitor(self, rhs: ContextUpdates) -> ContextUpdates
|
operation. Read moresource§impl BitOrAssign for ContextUpdates
impl BitOrAssign for ContextUpdates
source§fn bitor_assign(&mut self, rhs: ContextUpdates)
fn bitor_assign(&mut self, rhs: ContextUpdates)
|=
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for 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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.