pub struct BackgroundRenderer { /* private fields */ }Expand description
Background renderer for non-blocking rendering.
Implementations§
Source§impl BackgroundRenderer
impl BackgroundRenderer
Sourcepub fn new(timeline: Arc<Timeline>, config: RenderConfig) -> Self
pub fn new(timeline: Arc<Timeline>, config: RenderConfig) -> Self
Create a new background renderer.
Sourcepub fn start(&mut self, start: i64, end: i64) -> Receiver<RenderFrame>
pub fn start(&mut self, start: i64, end: i64) -> Receiver<RenderFrame>
Start rendering in the background.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if rendering is complete.
Auto Trait Implementations§
impl Freeze for BackgroundRenderer
impl RefUnwindSafe for BackgroundRenderer
impl Send for BackgroundRenderer
impl Sync for BackgroundRenderer
impl Unpin for BackgroundRenderer
impl UnsafeUnpin for BackgroundRenderer
impl UnwindSafe for BackgroundRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more