Struct realize::meta::Reality
[−]
[src]
pub struct Reality { /* fields omitted */ }
A meta-resource that ensures that other resources are realized, in the correct dependency order.
Methods
impl Reality
[src]
fn new(log: Logger) -> Reality
Constructs a new reality that logs to the specified logger.
fn ensure<R>(&mut self, resource: R) where
R: UnresolvedResource + Resource + 'static,
R: UnresolvedResource + Resource + 'static,
Adds a resource to be realized (including its dependencies) when this reality is realized.
Trait Implementations
impl Debug for Reality
[src]
impl Resource for Reality
[src]
fn key(&self) -> Key
The key of this resource, that distinguishes it from other resources of the same type. For files, this might be the file path, for example. Read more
fn realize(&self, ctx: &Context) -> Result<()>
Realizes this resource, performing any needed operations on the target system. Read more
fn verify(&self, ctx: &Context) -> Result<bool>
Verifies whether this resource is already realized on the target system. This will potentially perform a lot of IO operations but should not make any changes. Read more
fn as_any(&self) -> &Any
Converts this resource into an opaque Any
reference.
impl Ensurer for Reality
[src]
fn ensure<R>(&mut self, resource: R) where
R: UnresolvedResource + 'static,
R: UnresolvedResource + 'static,
Ensures that the specified resource is realized, including its unresolved dependencies. Read more