[−][src]Struct oxygengine_core::assets::database::AssetsDatabase
Methods
impl AssetsDatabase[src]
pub fn new<FE>(fetch_engine: FE) -> Self where
FE: FetchEngine + 'static, [src]
FE: FetchEngine + 'static,
pub fn loaded_count(&self) -> usize[src]
pub fn loaded_paths(&self) -> Vec<String>[src]
pub fn loaded_ids(&self) -> Vec<AssetID>[src]
pub fn loading_count(&self) -> usize[src]
pub fn loading_paths(&self) -> Vec<String>[src]
pub fn yielded_count(&self) -> usize[src]
pub fn yielded_paths(&self) -> Vec<String>[src]
pub fn yielded_deps_count(&self) -> usize[src]
pub fn yielded_deps_paths(&self) -> Vec<String>[src]
pub fn lately_loaded(&self) -> impl Iterator<Item = &AssetID>[src]
pub fn lately_loaded_protocol<'a>(
&'a self,
protocol: &'a str
) -> impl Iterator<Item = &'a AssetID>[src]
&'a self,
protocol: &'a str
) -> impl Iterator<Item = &'a AssetID>
pub fn lately_unloaded(&self) -> impl Iterator<Item = &AssetID>[src]
pub fn lately_unloaded_protocol<'a>(
&'a self,
protocol: &'a str
) -> impl Iterator<Item = &'a AssetID>[src]
&'a self,
protocol: &'a str
) -> impl Iterator<Item = &'a AssetID>
pub fn is_ready(&self) -> bool[src]
pub fn are_ready<I, S>(&self, iter: I) -> bool where
I: IntoIterator<Item = S>,
S: AsRef<str>, [src]
I: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn push_fetch_engine(&mut self, fetch_engine: Box<dyn FetchEngine>)[src]
pub fn pop_fetch_engine(&mut self) -> Option<Box<dyn FetchEngine>>[src]
pub fn fetch_engine(&self) -> &Box<dyn FetchEngine>[src]
pub fn fetch_engine_mut(&mut self) -> &mut Box<dyn FetchEngine>[src]
pub fn with_fetch_engine<F, R>(&mut self, action: F) -> R where
F: FnMut(&mut dyn FetchEngine) -> R, [src]
F: FnMut(&mut dyn FetchEngine) -> R,
pub fn register<FE>(&mut self, protocol: FE) where
FE: AssetProtocol + 'static, [src]
FE: AssetProtocol + 'static,
pub fn unregister(
&mut self,
protocol_name: &str
) -> Option<Box<dyn AssetProtocol>>[src]
&mut self,
protocol_name: &str
) -> Option<Box<dyn AssetProtocol>>
pub fn load(&mut self, path: &str) -> Result<(), LoadStatus>[src]
pub fn insert(&mut self, path: &str, asset: Asset) -> AssetID[src]
pub fn remove_by_id(&mut self, id: AssetID) -> Option<Asset>[src]
pub fn remove_by_path(&mut self, path: &str) -> Option<Asset>[src]
pub fn remove_by_variants(&mut self, variants: &[AssetVariant])[src]
pub fn id_by_path(&self, path: &str) -> Option<AssetID>[src]
pub fn path_by_id(&self, id: AssetID) -> Option<&str>[src]
pub fn asset_by_id(&self, id: AssetID) -> Option<&Asset>[src]
pub fn asset_by_path(&self, path: &str) -> Option<&Asset>[src]
pub fn process(&mut self)[src]
Auto Trait Implementations
impl Sync for AssetsDatabase
impl Send for AssetsDatabase
impl Unpin for AssetsDatabase
impl !RefUnwindSafe for AssetsDatabase
impl !UnwindSafe for AssetsDatabase
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,