Trait geng_asset::Load

source ·
pub trait Load: Sized + 'static {
    type Options: Clone + Default;

    const DEFAULT_EXT: Option<&'static str>;

    // Required method
    fn load(
        manager: &Manager,
        path: &Path,
        options: &Self::Options
    ) -> Future<Self>;
}

Required Associated Types§

Required Associated Constants§

source

const DEFAULT_EXT: Option<&'static str>

Required Methods§

source

fn load(manager: &Manager, path: &Path, options: &Self::Options) -> Future<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Load for Value

§

type Options = ()

source§

fn load( manager: &Manager, path: &Path, _options: &Self::Options ) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = _

source§

impl Load for String

§

type Options = ()

source§

fn load( _manager: &Manager, path: &Path, _options: &Self::Options ) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = _

source§

impl Load for Vec<u8>

§

type Options = ()

source§

fn load( _manager: &Manager, path: &Path, _options: &Self::Options ) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = None

source§

impl Load for Sound

§

type Options = SoundOptions

source§

fn load(manager: &Manager, path: &Path, options: &Self::Options) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = _

source§

impl Load for Font

§

type Options = Options

source§

fn load(manager: &Manager, path: &Path, options: &Self::Options) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = _

source§

impl Load for Program

§

type Options = ()

source§

fn load( manager: &Manager, path: &Path, _options: &Self::Options ) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = _

source§

impl Load for Texture

§

type Options = TextureOptions

source§

fn load(manager: &Manager, path: &Path, options: &Self::Options) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = _

source§

impl<T> Load for Rc<T>
where T: Load + 'static,

§

type Options = <T as Load>::Options

source§

fn load(manager: &Manager, path: &Path, options: &Self::Options) -> Future<Self>

source§

const DEFAULT_EXT: Option<&'static str> = T::DEFAULT_EXT

Implementors§

source§

impl<T: Load> Load for Hot<T>

§

type Options = <T as Load>::Options

source§

const DEFAULT_EXT: Option<&'static str> = T::DEFAULT_EXT