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

User error type.

Required Methods

Read the contents of a .gltf or .glb file.

Read the contents of external data.

Implementors