Skip to main content

RealtimeFrameTransition

Trait RealtimeFrameTransition 

Source
pub trait RealtimeFrameTransition<MB, S, R, C> {
    type Output;
    type Error;

    // Required method
    fn execute(
        &mut self,
        frame: &RealtimeInputFrame,
        branch: &mut RealtimeGenerationBranch<MB, S, R, C>,
    ) -> Result<(Self::Output, C), Self::Error>;
}
Expand description

Additive execution contract for architectures that consume realtime frames.

The causal-text base model contract remains unchanged. Realtime composition implements this extension only when frame ingress is part of execution.

Required Associated Types§

Source

type Output

Output causally produced by one frame transition.

Source

type Error

Architecture or mechanism failure before publication.

Required Methods§

Source

fn execute( &mut self, frame: &RealtimeInputFrame, branch: &mut RealtimeGenerationBranch<MB, S, R, C>, ) -> Result<(Self::Output, C), Self::Error>

Consumes the portable ingress frame, mutates the unpublished branch, and returns the exact completion associated with the submitted work.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§