pub struct SetAssetProtocol;Trait Implementations§
Source§impl AssetProtocol for SetAssetProtocol
impl AssetProtocol for SetAssetProtocol
fn name(&self) -> &str
fn on_load(&mut self, data: Vec<u8>) -> AssetLoadResult
fn on_resume(&mut self, _: Meta, list: &[(&str, &Asset)]) -> AssetLoadResult
fn on_unload(&mut self, asset: &Asset) -> Option<Vec<AssetVariant>>
fn on_register(&mut self)
fn on_unregister(&mut self)
Auto Trait Implementations§
impl Freeze for SetAssetProtocol
impl RefUnwindSafe for SetAssetProtocol
impl Send for SetAssetProtocol
impl Sync for SetAssetProtocol
impl Unpin for SetAssetProtocol
impl UnwindSafe for SetAssetProtocol
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