pub struct AssetRef<'a, T>{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a, T> Asset for AssetRef<'a, T>
impl<'a, T> Asset for AssetRef<'a, T>
type Options = <T as Asset>::Options
fn fetch_with_progress( &self, options: Self::Options, ) -> Pin<Box<dyn Stream<Item = Progress> + Send + '_>>
fn fetch( &self, options: Self::Options, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + Sync + '_>>
fn name(&self) -> &str
fn update_baseurl(&self, baseurl: &Path)
Source§impl<'a, T> AssetManager for AssetRef<'a, T>
impl<'a, T> AssetManager for AssetRef<'a, T>
Auto Trait Implementations§
impl<'a, T> !Freeze for AssetRef<'a, T>
impl<'a, T> RefUnwindSafe for AssetRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for AssetRef<'a, T>
impl<'a, T> Sync for AssetRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for AssetRef<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for AssetRef<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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