Struct mugltf::GltfResourceFileLoader
source · [−]pub struct GltfResourceFileLoader { /* private fields */ }
Expand description
Loader of glTF resources from file system.
Trait Implementations
sourceimpl Debug for GltfResourceFileLoader
impl Debug for GltfResourceFileLoader
sourceimpl Default for GltfResourceFileLoader
impl Default for GltfResourceFileLoader
sourceimpl GltfResourceLoader for GltfResourceFileLoader
impl GltfResourceLoader for GltfResourceFileLoader
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 GltfResourceFileLoader
impl Send for GltfResourceFileLoader
impl Sync for GltfResourceFileLoader
impl Unpin for GltfResourceFileLoader
impl UnwindSafe for GltfResourceFileLoader
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