[−][src]Enum spirit::fragment::driver::Instruction
One instruction from the Driver
.
The Driver
issues instructions to the rest of the Pipeline
.
They either ask it to install a new resource or to remove some previous resources.
Variants
DropAll
Instruction for the Pipeline
to remove all active resources
produced by this driver.
This is legal to use even in cases when the set of active resources is empty (this drops nothing) or if the resources are not uniquely separately identifiable.
DropSpecific(CacheId)
Instruction for the Pipeline
to remove a specific resource.
It is a contract violation if this ID doesn't correspond to exactly one active resource and
the Pipeline
may panic or misbehave under such circumstances. Specifically, it is not
allowed to refer to resource that is no longer active (was dropped previously), never
existed or to use a non-unique ID here.
Install
Installs another resource.
The resource is identified with an id
, so it can be referenced in the future. It is
allowed to reuse a no longer used ID. It is not allowed to produce non-unique IDs for
active resources.
Fields of Install
Auto Trait Implementations
impl<Resource> Send for Instruction<Resource> where
Resource: Send,
Resource: Send,
impl<Resource> Sync for Instruction<Resource> where
Resource: Sync,
Resource: Sync,
Blanket Implementations
impl<T> IntoResult for T
[src]
fn into_result(Self) -> Result<T, Error>
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.