Skip to main content

CustomFrame

Trait CustomFrame 

Source
pub trait CustomFrame:
    Any
    + Send
    + Sync
    + Debug {
    // Required methods
    fn frame_class(&self) -> FrameClass;
    fn as_any(&self) -> &dyn Any;

    // Provided methods
    fn uninterruptible(&self) -> bool { ... }
    fn name(&self) -> &'static str { ... }
}
Expand description

OSS extension point: a frame type defined outside flowcat-core, carried in Frame::Custom. Processors that understand it downcast_ref via CustomFrame::as_any; everyone else forwards it unchanged.

Required Methods§

Source

fn frame_class(&self) -> FrameClass

Scheduling class (System/Data/Control) for this custom frame.

Source

fn as_any(&self) -> &dyn Any

Downcast hook so a processor can recover the concrete type.

Provided Methods§

Source

fn uninterruptible(&self) -> bool

True if this frame must survive interruption (pipecat UninterruptibleFrame).

Source

fn name(&self) -> &'static str

A stable human name for tracing/observers.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§