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 AssetServerThe 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 SchemaThe 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>
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