Skip to main content

SingleTimeline

Struct SingleTimeline 

Source
pub struct SingleTimeline { /* private fields */ }
Expand description

Wraps a single resolved TimelineComponent as a one-entry collection.

The tree is resolved ONCE at collection construction (plugin-side — the host only sees Box<dyn TimelineCollection>, audit B1) and the result is stored as a Result: resolving probes media and can fail, but the entry fn cannot return a Result across the dylib boundary and panicking there is UB-adjacent (audit M5). So the error is stored and surfaced per query — frame builds yield None, timelines carries the error string, and arrangement yields None.

Trait Implementations§

Source§

impl TimelineCollection for SingleTimeline

Source§

fn timelines(&self) -> Vec<TimelineInfo>

Source§

fn build( &self, id: &str, t: TimelineTime, target: Resolution, residency: RasterResidency, ctx: &mut dyn RenderContext, ) -> Option<RasterImage>

Builds a frame with the representation requested by its consumer.
Source§

fn arrangement(&self, id: &str) -> Option<Arrangement>

The resolved arrangement tree for id, for the live UI to introspect. Read more
Source§

fn render_audio( &self, id: &str, rate: u32, channels: u16, ) -> Option<AudioBuffer>

The block-rendered audio mix-down for id at rate / channels, for the live preview to mux into its video stream. None means the collection contributes no audio (the preview then muxes a silent track for a consistent A/V stream structure). Defaulted so collections migrate in stages, mirroring arrangement.
Source§

fn render_audio_window( &self, id: &str, start: f64, duration: f64, rate: u32, channels: u16, ) -> Option<AudioBuffer>

Block-rendered audio mix-down for [start, start + duration), used by the live preview when it encodes an individual cache segment. Custom collections must implement this explicitly to preview audio; falling back to the whole-track render_audio would reintroduce the per-segment full-timeline work this API avoids.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.