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§
Required Methods§
Sourcefn execute(
&mut self,
frame: &RealtimeInputFrame,
branch: &mut RealtimeGenerationBranch<MB, S, R, C>,
) -> Result<(Self::Output, C), Self::Error>
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".