Struct assets::AssetManager
[−]
[src]
pub struct AssetManager<A, L, E> where
A: Asset,
A::Data: AssetFormat<Input = L::Output>,
L: Loader,
E: Executor<BoxFuture<(), ()>>, { /* fields omitted */ }
Methods
impl<A, L, E> AssetManager<A, L, E> where
A: Asset,
A::Data: AssetFormat<Input = L::Output>,
L: Loader,
E: Executor<BoxFuture<(), ()>>,
[src]
A: Asset,
A::Data: AssetFormat<Input = L::Output>,
L: Loader,
E: Executor<BoxFuture<(), ()>>,
fn new(loader: Arc<L>, executor: Arc<E>) -> Self
[src]
fn loading(&self) -> MutexGuard<BitSet>
[src]
fn loaded(&self) -> MutexGuard<BitSet>
[src]
fn errors(
&self
) -> MutexGuard<Vec<AssertError<A, L::Error, <A::Data as AssetFormat>::Error>>>
[src]
&self
) -> MutexGuard<Vec<AssertError<A, L::Error, <A::Data as AssetFormat>::Error>>>
fn data(
&self
) -> &HashMap<Handle<A>, (L::Path, <A::Data as AssetFormat>::Options)>
[src]
&self
) -> &HashMap<Handle<A>, (L::Path, <A::Data as AssetFormat>::Options)>
fn is_loaded(&self, handle: Handle<A>) -> bool
[src]
fn is_loading(&self, handle: Handle<A>) -> bool
[src]
fn add(
&mut self,
path: L::Path,
options: <A::Data as AssetFormat>::Options,
preload: bool
) -> Handle<A>
[src]
&mut self,
path: L::Path,
options: <A::Data as AssetFormat>::Options,
preload: bool
) -> Handle<A>
fn remove(&mut self, handle: Handle<A>) -> Option<A::Data>
[src]
fn get(&self, handle: &Handle<A>) -> Option<&A::Data>
[src]
fn get_mut(&mut self, handle: &Handle<A>) -> Option<&mut A::Data>
[src]
Trait Implementations
impl<A, L, E> Send for AssetManager<A, L, E> where
A: Asset,
A::Data: AssetFormat<Input = L::Output>,
L: Loader,
E: Executor<BoxFuture<(), ()>>,
[src]
A: Asset,
A::Data: AssetFormat<Input = L::Output>,
L: Loader,
E: Executor<BoxFuture<(), ()>>,
impl<A, L, E> Sync for AssetManager<A, L, E> where
A: Asset,
A::Data: AssetFormat<Input = L::Output>,
L: Loader,
E: Executor<BoxFuture<(), ()>>,
[src]
A: Asset,
A::Data: AssetFormat<Input = L::Output>,
L: Loader,
E: Executor<BoxFuture<(), ()>>,