pub struct ResourcePlan<C> { /* private fields */ }Expand description
Ordered data-only resource plan returned from graph propagation.
Implementations§
Source§impl<C> ResourcePlan<C>
impl<C> ResourcePlan<C>
Sourcepub fn open(&mut self, key: ResourceKey, scope: ScopeId, command: C)
pub fn open(&mut self, key: ResourceKey, scope: ScopeId, command: C)
Adds an open command.
Sourcepub fn close(&mut self, key: ResourceKey, scope: ScopeId)
pub fn close(&mut self, key: ResourceKey, scope: ScopeId)
Adds a close command.
Sourcepub fn replace(&mut self, key: ResourceKey, scope: ScopeId, command: C)
pub fn replace(&mut self, key: ResourceKey, scope: ScopeId, command: C)
Adds a replace command.
Sourcepub fn refresh(&mut self, key: ResourceKey, scope: ScopeId, command: C)
pub fn refresh(&mut self, key: ResourceKey, scope: ScopeId, command: C)
Adds a refresh command.
Sourcepub fn commands(&self) -> &[ResourceCommand<C>]
pub fn commands(&self) -> &[ResourceCommand<C>]
Returns ordered commands in this plan.
Sourcepub fn into_commands(self) -> Vec<ResourceCommand<C>>
pub fn into_commands(self) -> Vec<ResourceCommand<C>>
Consumes the plan into ordered commands.
Trait Implementations§
Source§impl<C: Clone> Clone for ResourcePlan<C>
impl<C: Clone> Clone for ResourcePlan<C>
Source§fn clone(&self) -> ResourcePlan<C>
fn clone(&self) -> ResourcePlan<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug> Debug for ResourcePlan<C>
impl<C: Debug> Debug for ResourcePlan<C>
Source§impl<C> Default for ResourcePlan<C>
impl<C> Default for ResourcePlan<C>
impl<C: Eq> Eq for ResourcePlan<C>
Source§impl<C: PartialEq> PartialEq for ResourcePlan<C>
impl<C: PartialEq> PartialEq for ResourcePlan<C>
Source§fn eq(&self, other: &ResourcePlan<C>) -> bool
fn eq(&self, other: &ResourcePlan<C>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<C: PartialEq> StructuralPartialEq for ResourcePlan<C>
Auto Trait Implementations§
impl<C> Freeze for ResourcePlan<C>
impl<C> RefUnwindSafe for ResourcePlan<C>where
C: RefUnwindSafe,
impl<C> Send for ResourcePlan<C>where
C: Send,
impl<C> Sync for ResourcePlan<C>where
C: Sync,
impl<C> Unpin for ResourcePlan<C>where
C: Unpin,
impl<C> UnsafeUnpin for ResourcePlan<C>
impl<C> UnwindSafe for ResourcePlan<C>where
C: 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