pub struct MainEffectHandler {
pub state: PipelineState,
pub event_log: Vec<PipelineEvent>,
}Expand description
Main effect handler implementation.
This handler executes effects by calling existing pipeline functions, maintaining compatibility while migrating to reducer architecture.
Fields§
§state: PipelineStateCurrent pipeline state
event_log: Vec<PipelineEvent>Event log for replay/debugging
Implementations§
Source§impl MainEffectHandler
impl MainEffectHandler
Sourcepub fn new(state: PipelineState) -> Self
pub fn new(state: PipelineState) -> Self
Create a new effect handler.
Trait Implementations§
Source§impl<'ctx> EffectHandler<'ctx> for MainEffectHandler
impl<'ctx> EffectHandler<'ctx> for MainEffectHandler
fn execute( &mut self, effect: Effect, ctx: &mut PhaseContext<'_>, ) -> Result<PipelineEvent>
Source§impl StatefulHandler for MainEffectHandler
impl StatefulHandler for MainEffectHandler
Source§fn update_state(&mut self, state: PipelineState)
fn update_state(&mut self, state: PipelineState)
Update the handler’s internal state.
Auto Trait Implementations§
impl Freeze for MainEffectHandler
impl RefUnwindSafe for MainEffectHandler
impl Send for MainEffectHandler
impl Sync for MainEffectHandler
impl Unpin for MainEffectHandler
impl UnwindSafe for MainEffectHandler
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
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>
Converts
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>
Converts
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