Skip to main content

FrameExecutor

Trait FrameExecutor 

pub trait FrameExecutor: Send + Sync {
    // Required method
    fn prepare(
        &self,
        request: FrameRequest<'_>,
    ) -> Result<Frame, PixelFlowError>;

    // Provided method
    fn commit(
        &self,
        _frame_number: usize,
        frame: Frame,
    ) -> Result<Frame, PixelFlowError> { ... }
}
Expand description

Executor that produces frames for one graph node.

Required Methods§

fn prepare(&self, request: FrameRequest<'_>) -> Result<Frame, PixelFlowError>

Prepares one frame and may request dependencies through the provided request object.

Provided Methods§

fn commit( &self, _frame_number: usize, frame: Frame, ) -> Result<Frame, PixelFlowError>

Commits prepared frame state before result becomes visible downstream.

Trait Implementations§

§

impl Debug for dyn FrameExecutor

§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementors§