Struct bones_asset::prelude::MetaAssetLoadCtx
source · pub struct MetaAssetLoadCtx<'srv> {
pub server: &'srv AssetServer,
pub dependencies: &'srv mut Vec<UntypedHandle>,
pub loc: AssetLocRef<'srv>,
pub schema: &'static Schema,
}
Expand description
Context provided while loading a metadata asset.
Fields§
§server: &'srv AssetServer
The asset server.
dependencies: &'srv mut Vec<UntypedHandle>
The dependency list of this asset. This should be updated by asset loaders as dependencies are added.
loc: AssetLocRef<'srv>
The location that the asset is being loaded from.
schema: &'static Schema
The schema of the asset being loaded.
Trait Implementations§
source§impl<'asset, 'de> DeserializeSeed<'de> for MetaAssetLoadCtx<'asset>
impl<'asset, 'de> DeserializeSeed<'de> for MetaAssetLoadCtx<'asset>
source§fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
Equivalent to the more common
Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in.Auto Trait Implementations§
impl<'srv> Freeze for MetaAssetLoadCtx<'srv>
impl<'srv> !RefUnwindSafe for MetaAssetLoadCtx<'srv>
impl<'srv> Send for MetaAssetLoadCtx<'srv>
impl<'srv> Sync for MetaAssetLoadCtx<'srv>
impl<'srv> Unpin for MetaAssetLoadCtx<'srv>
impl<'srv> !UnwindSafe for MetaAssetLoadCtx<'srv>
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