Trait gltf::import::Source
[−]
[src]
pub trait Source: Debug + Sized + 'static { type Error: Error; fn source_gltf(&self) -> Box<Future<Item = Box<[u8]>, Error = Self::Error>>; fn source_external_data(
&self,
uri: &str
) -> Box<Future<Item = Box<[u8]>, Error = Self::Error>>; }
A trait for representing sources of glTF data that may be read by an importer.
Associated Types
Required Methods
fn source_gltf(&self) -> Box<Future<Item = Box<[u8]>, Error = Self::Error>>
Read the contents of a .gltf or .glb file.
fn source_external_data(
&self,
uri: &str
) -> Box<Future<Item = Box<[u8]>, Error = Self::Error>>
&self,
uri: &str
) -> Box<Future<Item = Box<[u8]>, Error = Self::Error>>
Read the contents of external data.
Implementors
impl Source for FromPath