Trait gltf::import::Source [] [src]

pub trait Source: Debug + Send + Sync + 'static {
    type Error: Error + Send + Sync;
    fn source_gltf(&self) -> BoxFuture<Box<[u8]>, Self::Error>;
    fn source_external_data(
        &self,
        uri: &str
    ) -> BoxFuture<Box<[u8]>, 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