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§
Sourcefn frame_class(&self) -> FrameClass
fn frame_class(&self) -> FrameClass
Scheduling class (System/Data/Control) for this custom frame.
Provided Methods§
Sourcefn uninterruptible(&self) -> bool
fn uninterruptible(&self) -> bool
True if this frame must survive interruption (pipecat UninterruptibleFrame).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".