pub struct AudioAssetProtocol;
Trait Implementations§
source§impl AssetProtocol for AudioAssetProtocol
impl AssetProtocol for AudioAssetProtocol
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, Global> ) -> AssetLoadResult
fn on_resume( &mut self, _meta: Option<Box<dyn Any + Send + Sync, Global>>, _list: &[(&str, &Asset)] ) -> AssetLoadResult
fn on_unload(&mut self, _asset: &Asset) -> Option<Vec<AssetVariant, Global>>
fn on_register(&mut self)
fn on_unregister(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for AudioAssetProtocol
impl Send for AudioAssetProtocol
impl Sync for AudioAssetProtocol
impl Unpin for AudioAssetProtocol
impl UnwindSafe for AudioAssetProtocol
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