pub struct VitaRenderer { /* private fields */ }Expand description
Plays single notes through the open engine in a Python process.
Implementations§
Source§impl VitaRenderer
impl VitaRenderer
Sourcepub fn start(python: &Path, script: &Path) -> Result<Self, RenderError>
pub fn start(python: &Path, script: &Path) -> Result<Self, RenderError>
Starts a renderer that runs script, tools/vita/render.py, with
python.
§Errors
Returns RenderError::Engine when the script does not run or names
no vita version.
Trait Implementations§
Source§impl Debug for VitaRenderer
impl Debug for VitaRenderer
Source§impl Renderer for VitaRenderer
impl Renderer for VitaRenderer
Source§fn identity(&self) -> HostIdentity
fn identity(&self) -> HostIdentity
Returns what renders.
Source§fn render(&mut self, job: &RenderJob) -> Result<Rendered, RenderError>
fn render(&mut self, job: &RenderJob) -> Result<Rendered, RenderError>
Renders one job. Read more
Source§fn render_init(&mut self, job: &RenderJob) -> Result<Rendered, RenderError>
fn render_init(&mut self, job: &RenderJob) -> Result<Rendered, RenderError>
Renders the job’s notes with the plug-in’s own init patch: the job’s
state is not loaded. Only a renderer that has loaded no state yet
holds the init patch, so the load check calls this first. Read more
Source§fn save_state(&mut self) -> Result<Vec<u8>, RenderError>
fn save_state(&mut self) -> Result<Vec<u8>, RenderError>
Returns the state the plug-in saves now. Read more
Source§fn last_state_load(&self) -> Option<Seconds>
fn last_state_load(&self) -> Option<Seconds>
Returns how long the state load of the last render took, when the
backend measures it. A render of the init patch loads no state.
Auto Trait Implementations§
impl Freeze for VitaRenderer
impl RefUnwindSafe for VitaRenderer
impl Send for VitaRenderer
impl Sync for VitaRenderer
impl Unpin for VitaRenderer
impl UnsafeUnpin for VitaRenderer
impl UnwindSafe for VitaRenderer
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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