pub struct UiThemeAssetProtocol;
Trait Implementations§
Source§impl AssetProtocol for UiThemeAssetProtocol
impl AssetProtocol for UiThemeAssetProtocol
fn name(&self) -> &str
fn on_load(&mut self, data: Vec<u8>) -> AssetLoadResult
fn on_load_with_path(&mut self, _path: &str, data: Vec<u8>) -> AssetLoadResult
fn on_resume( &mut self, _meta: Option<Box<dyn Any + Sync + Send>>, _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 UiThemeAssetProtocol
impl RefUnwindSafe for UiThemeAssetProtocol
impl Send for UiThemeAssetProtocol
impl Sync for UiThemeAssetProtocol
impl Unpin for UiThemeAssetProtocol
impl UnwindSafe for UiThemeAssetProtocol
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