pub trait Playback {
type Error;
type Timing;
// Required method
fn render(
&mut self,
render: impl FnOnce(&mut Block, Self::Timing),
) -> Result<Submission, Self::Error>;
}Expand description
Sink for a stereo graph master. Service it on the backend’s owning thread.
Required Associated Types§
Required Methods§
Sourcefn render(
&mut self,
render: impl FnOnce(&mut Block, Self::Timing),
) -> Result<Submission, Self::Error>
fn render( &mut self, render: impl FnOnce(&mut Block, Self::Timing), ) -> Result<Submission, Self::Error>
Call the renderer at most once, with a cleared block. On submission failure after rendering, the caller’s graph may already have advanced.
§Errors
Returns transport errors from the backend.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".