Struct oxygengine_script_flow::resource::FlowManager
source · pub struct FlowManager { /* private fields */ }
Implementations§
source§impl FlowManager
impl FlowManager
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 FlowManager
impl Default for FlowManager
source§fn default() -> FlowManager
fn default() -> FlowManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlowManager
impl !RefUnwindSafe for FlowManager
impl Send for FlowManager
impl Sync for FlowManager
impl Unpin for FlowManager
impl !UnwindSafe for FlowManager
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> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
source§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
source§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.