Trait goods::SyncAsset[][src]

pub trait SyncAsset: Clone + Sized + 'static {
    type Error: Error + Send + Sync;
    type Context;
    type Repr;
    fn build(
        repr: Self::Repr,
        ctx: &mut Self::Context
    ) -> Result<Self, Self::Error>; }

Shortcut for implementing Asset when asset building is synchronous.

Associated Types

type Error: Error + Send + Sync[src]

Error that may occur during asset building.

type Context[src]

Asset processing context. Instance of context is required to convert asset intermediate representation into asset instance.

type Repr[src]

Intermediate representation type for the asset. This representation is constructed by Format::decode.

Loading content...

Required methods

fn build(repr: Self::Repr, ctx: &mut Self::Context) -> Result<Self, Self::Error>[src]

Build asset instance from intermediate representation using provided context.

Loading content...

Implementors

impl<S> SyncAsset for S where
    S: SimpleAsset
[src]

type Error = Infallible

type Repr = Self

type Context = PhantomContext

Loading content...