pub struct FlowScriptManager { /* private fields */ }
Implementations§
Source§impl FlowScriptManager
impl FlowScriptManager
pub fn create_vm(&mut self, name: &str, ast: Program) -> Result<(), VmError>
pub fn destroy_vm(&mut self, name: &str) -> bool
pub fn is_paused(&self, name: &str) -> Option<bool>
pub fn set_paused(&mut self, name: &str, paused: bool) -> Option<()>
pub fn get(&self, name: &str) -> Option<&Vm>
pub fn get_mut(&mut self, name: &str) -> Option<&mut Vm>
pub fn vms(&self) -> impl Iterator<Item = &Vm>
pub fn vms_mut(&mut self) -> impl Iterator<Item = &mut Vm>
pub fn process_events(&mut self) -> Result<(), VmError>
Trait Implementations§
Source§impl Default for FlowScriptManager
impl Default for FlowScriptManager
Source§fn default() -> FlowScriptManager
fn default() -> FlowScriptManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlowScriptManager
impl !RefUnwindSafe for FlowScriptManager
impl Send for FlowScriptManager
impl Sync for FlowScriptManager
impl Unpin for FlowScriptManager
impl !UnwindSafe for FlowScriptManager
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