Struct mugltf::GltfResourceFetchLoader
source · [−]pub struct GltfResourceFetchLoader { /* private fields */ }
Expand description
Loader of glTF resources using fetch API.
Trait Implementations
sourceimpl Debug for GltfResourceFetchLoader
impl Debug for GltfResourceFetchLoader
sourceimpl Default for GltfResourceFetchLoader
impl Default for GltfResourceFetchLoader
sourceimpl GltfResourceLoader for GltfResourceFetchLoader
impl GltfResourceLoader for GltfResourceFetchLoader
type Error = FetchLoaderError
type Error = FetchLoaderError
Loading error type.
type ImageData = HtmlImageElement
type ImageData = HtmlImageElement
Image data type.
sourcefn get_gltf<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_gltf<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Loads a glTF JSON or GLB file from path into bytes.
sourcefn get_buffer<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_buffer<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Loads a binary buffer from path or data url.
sourcefn get_image<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Self::ImageData, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_image<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Self::ImageData, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Loads an image from path or data url.
sourcefn decode_image<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
img: &'life1 [u8],
mime_type: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Self::ImageData, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn decode_image<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
img: &'life1 [u8],
mime_type: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Self::ImageData, Self::Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Decodes an image file binary of given mime type as image data.
Auto Trait Implementations
impl RefUnwindSafe for GltfResourceFetchLoader
impl Send for GltfResourceFetchLoader
impl Sync for GltfResourceFetchLoader
impl Unpin for GltfResourceFetchLoader
impl UnwindSafe for GltfResourceFetchLoader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more