pub struct Pending<H> { /* private fields */ }Expand description
A deferred-op buffer handed to a module during a tick. A child issues spawn/close/move here; nothing mutates the table until the tick completes.
Implementations§
Source§impl<H> Pending<H>
impl<H> Pending<H>
Sourcepub fn spawn(&mut self, handle: H, viewport: Viewport)
pub fn spawn(&mut self, handle: H, viewport: Viewport)
Queue a new child module to be added after the tick.
Sourcepub fn close(&mut self, idx: usize)
pub fn close(&mut self, idx: usize)
Queue the removal of the module at idx (resolved against the table as
it stands when ops are applied).
Sourcepub fn set_viewport(&mut self, idx: usize, viewport: Viewport)
pub fn set_viewport(&mut self, idx: usize, viewport: Viewport)
Queue a viewport change for the module at idx.
Auto Trait Implementations§
impl<H> Freeze for Pending<H>
impl<H> RefUnwindSafe for Pending<H>where
H: RefUnwindSafe,
impl<H> Send for Pending<H>where
H: Send,
impl<H> Sync for Pending<H>where
H: Sync,
impl<H> Unpin for Pending<H>where
H: Unpin,
impl<H> UnsafeUnpin for Pending<H>
impl<H> UnwindSafe for Pending<H>where
H: UnwindSafe,
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