pub enum EffectKind {
PostCreateWindow {
request: TopLevelCreationRequest,
creation_id: u64,
},
SpawnPoolWindow,
CloseOrphanBrowser {
browser: Browser,
},
}Expand description
Side-effect descriptor emitted by reducer arms. Carried inside
HostEvent::Effect(EffectKind). The effects executor in
AppState::host_dispatch_with_effects dispatches each kind to the
appropriate imperative handler (e.g., posting a CEF UI task).
Reducer arms emit effects but never execute them; this preserves the
pure-functional discipline of update(). Manual Debug impl below
because cef::Browser doesn’t impl Debug.
Variants§
PostCreateWindow
Begin top-level window creation by posting ui_tasks::post_create_window.
Carried by HostEvent::TopLevelCreationStarted’s effect path.
SpawnPoolWindow
Spawn a pool window (PR #3 wires this when pool drops below TARGET_SIZE).
CloseOrphanBrowser
Close an orphan CEF browser whose label doesn’t match any in-flight or registered entry. Used by H.6’s mismatched-callback handler to prevent label collision.
Fields
browser: BrowserTrait Implementations§
Source§impl Clone for EffectKind
impl Clone for EffectKind
Source§fn clone(&self) -> EffectKind
fn clone(&self) -> EffectKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EffectKind
impl RefUnwindSafe for EffectKind
impl Send for EffectKind
impl Sync for EffectKind
impl Unpin for EffectKind
impl UnwindSafe for EffectKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
§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.