pub struct AssetsDatabase {
    pub max_bytes_per_frame: Option<usize>,
    /* private fields */
}

Fields§

§max_bytes_per_frame: Option<usize>

Implementations§

source§

impl AssetsDatabase

source

pub fn new<FE>(fetch_engine: FE) -> AssetsDatabasewhere FE: FetchEngine + 'static,

source

pub fn register_error_reporter<T>(&mut self, reporter: T)where T: AssetsDatabaseErrorReporter + 'static,

source

pub fn unregister_error_reporter<T>(&mut self)where T: AssetsDatabaseErrorReporter + 'static,

source

pub fn loaded_count(&self) -> usize

source

pub fn loaded_paths(&self) -> Vec<String, Global>

source

pub fn loaded_ids(&self) -> Vec<ID<Asset>, Global>

source

pub fn loading_count(&self) -> usize

source

pub fn loading_paths(&self) -> Vec<String, Global>

source

pub fn yielded_count(&self) -> usize

source

pub fn yielded_paths(&self) -> Vec<String, Global>

source

pub fn yielded_deps_count(&self) -> usize

source

pub fn yielded_deps_paths(&self) -> Vec<String, Global>

source

pub fn lately_loaded(&self) -> impl Iterator<Item = &ID<Asset>>

source

pub fn lately_loaded_paths(&self) -> impl Iterator<Item = &str>

source

pub fn lately_loaded_protocol<'a>( &'a self, protocol: &'a str ) -> impl Iterator<Item = &'a ID<Asset>>

source

pub fn lately_unloaded(&self) -> impl Iterator<Item = &ID<Asset>>

source

pub fn lately_unloaded_paths(&self) -> impl Iterator<Item = &str>

source

pub fn lately_unloaded_protocol<'a>( &'a self, protocol: &'a str ) -> impl Iterator<Item = &'a ID<Asset>>

source

pub fn is_ready(&self) -> bool

source

pub fn are_ready<I, S>(&self, iter: I) -> boolwhere I: IntoIterator<Item = S>, S: AsRef<str>,

source

pub fn has_fetch_engine(&self) -> bool

source

pub fn fetch_engines_stack_size(&self) -> usize

source

pub fn push_fetch_engine(&mut self, fetch_engine: Box<dyn FetchEngine, Global>)

source

pub fn pop_fetch_engine(&mut self) -> Option<Box<dyn FetchEngine, Global>>

source

pub fn fetch_engine(&self) -> Option<&dyn FetchEngine>

source

pub fn fetch_engine_mut(&mut self) -> Option<&mut (dyn FetchEngine + 'static)>

source

pub fn with_fetch_engine<F, R>(&mut self, action: F) -> Option<R>where F: FnMut(&mut dyn FetchEngine) -> R,

source

pub fn register<FE>(&mut self, protocol: FE)where FE: AssetProtocol + 'static,

source

pub fn unregister( &mut self, protocol_name: &str ) -> Option<Box<dyn AssetProtocol, Global>>

source

pub fn load(&mut self, path: &str) -> Result<(), LoadStatus>

source

pub fn insert(&mut self, asset: Asset) -> ID<Asset>

source

pub fn remove_by_id(&mut self, id: ID<Asset>) -> Option<Asset>

source

pub fn remove_by_path(&mut self, path: &str) -> Option<Asset>

source

pub fn remove_by_variants(&mut self, variants: &[AssetVariant])

source

pub fn id_by_path(&self, path: &str) -> Option<ID<Asset>>

source

pub fn path_by_id(&self, id: ID<Asset>) -> Option<&str>

source

pub fn asset_by_id(&self, id: ID<Asset>) -> Option<&Asset>

source

pub fn asset_by_path(&self, path: &str) -> Option<&Asset>

source

pub fn defer_lately_cleanup(&mut self)

source

pub fn process(&mut self)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Finalize for T

§

unsafe fn finalize_raw(data: *mut ())

Safety Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Component for Twhere T: Send + Sync + 'static,