Struct bones_asset::prelude::AssetServerInner
source · pub struct AssetServerInner {
pub game_version: Mutex<Version>,
pub store: AssetStore,
pub asset_change_send: Sender<ChangedAsset>,
pub asset_change_recv: Receiver<ChangedAsset>,
pub load_progress: AssetLoadProgress,
}
Expand description
The inner state of the asset server.
Fields§
§game_version: Mutex<Version>
The version of the game. This is used to evaluate whether asset packs are compatible with the game.
store: AssetStore
The asset store.
asset_change_send: Sender<ChangedAsset>
Sender for asset changes, used by the AssetIo
implementation or other tasks to trigger
hot reloads.
asset_change_recv: Receiver<ChangedAsset>
Receiver for asset changes, used to implement hot reloads.
load_progress: AssetLoadProgress
The asset load progress.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AssetServerInner
impl !RefUnwindSafe for AssetServerInner
impl Send for AssetServerInner
impl Sync for AssetServerInner
impl Unpin for AssetServerInner
impl !UnwindSafe for AssetServerInner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more