pub struct Runtime { /* private fields */ }Implementations§
Source§impl Runtime
impl Runtime
pub fn new() -> Self
pub fn current_effect(&self) -> Option<usize>
pub fn register_effect(&mut self, f: impl Fn() + 'static) -> usize
pub fn set_current_effect(&mut self, id: Option<usize>) -> Option<usize>
pub fn get_effect(&self, id: usize) -> Option<&Box<dyn Fn()>>
pub fn schedule_effect(&mut self, id: usize)
pub fn is_batching(&self) -> bool
pub fn pop_pending_effect(&mut self) -> Option<usize>
pub fn start_batch(&mut self) -> bool
pub fn end_batch(&mut self, was_batching: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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