Skip to main content

FrameSource

Trait FrameSource 

Source
pub trait FrameSource: Send {
    // Required methods
    fn info(&self) -> &StreamInfo;
    fn read(&mut self) -> Option<Frame>;
    fn seek(&mut self, pts: u64);
}
Expand description

A recorded stream a server can play to subscribers.

Required Methods§

Source

fn info(&self) -> &StreamInfo

What the stream is.

Source

fn read(&mut self) -> Option<Frame>

The next frame, or None at the end.

Source

fn seek(&mut self, pts: u64)

Move to the key frame at or before pts (the first frame if there is none).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§