pub struct AdHocModel { /* private fields */ }Implementations§
Source§impl AdHocModel
impl AdHocModel
pub fn new(world: Arc<dyn World>) -> Arc<dyn Model>
pub fn into(model: Arc<dyn Model>) -> Arc<Self>
pub fn inner(&self) -> &Engine
pub fn id(&self) -> Option<ModelId>
pub fn set_id(&self, id: ModelId)
pub fn parameter(&self, name: &str) -> Option<Value>
pub fn set_parameter(&self, param: &str, value: Value)
pub async fn new_ready( &self, parent_track: Option<TrackId>, callback: Option<Box<dyn FnOnce(Box<dyn Outputs>) -> Vec<TrackFuture> + Send>>, )
Trait Implementations§
Source§impl Debug for AdHocModel
impl Debug for AdHocModel
Auto Trait Implementations§
impl !Freeze for AdHocModel
impl !RefUnwindSafe for AdHocModel
impl Send for AdHocModel
impl Sync for AdHocModel
impl Unpin for AdHocModel
impl !UnwindSafe for AdHocModel
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.