[][src]Struct daab::ArtifactPromise

pub struct ArtifactPromise<B: ?Sized> { /* fields omitted */ }

Encapsulates a builder as promise for its artifact from the ArtifactCache.

This struct is essentially a wrapper around Rc<B>, but it provides a Hash and Eq implementation based no the identity of the Rcs inner value.

All clones of an ArtifactPromise are considered identical.

An ArtifactPromise can be either resolved using the ArtifactCache::get() or ArtifactResolver::resolve().

Methods

impl<B: Builder + 'static> ArtifactPromise<B>[src]

pub fn new(builder: B) -> Self[src]

Crates a new promise for the given builder.

Trait Implementations

impl<B: ?Sized> Clone for ArtifactPromise<B>[src]

impl<B: Debug + ?Sized> Debug for ArtifactPromise<B>[src]

impl Eq for ArtifactPromise<dyn Any>[src]

impl<B: Builder + 'static> From<B> for ArtifactPromise<B>[src]

impl Hash for ArtifactPromise<dyn Any>[src]

impl PartialEq<ArtifactPromise<dyn Any + 'static>> for ArtifactPromise<dyn Any>[src]

Auto Trait Implementations

impl<B> !RefUnwindSafe for ArtifactPromise<B>

impl<B> !Send for ArtifactPromise<B>

impl<B> !Sync for ArtifactPromise<B>

impl<B: ?Sized> Unpin for ArtifactPromise<B>

impl<B> !UnwindSafe for ArtifactPromise<B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.