[][src]Trait amethyst_assets::Tracker

pub trait Tracker: Send + 'static {
    fn success(self: Box<Self>);
fn fail(
        self: Box<Self>,
        handle_id: u32,
        asset_type_name: &'static str,
        asset_name: String,
        error: Error
    ); }

The Tracker trait which will be used by the loader to report back to Progress.

Required methods

fn success(self: Box<Self>)

Called if the asset could be imported.

fn fail(
    self: Box<Self>,
    handle_id: u32,
    asset_type_name: &'static str,
    asset_name: String,
    error: Error
)

Called if the asset couldn't be imported to an error.

Loading content...

Implementations on Foreign Types

impl Tracker for ()[src]

Loading content...

Implementors

Loading content...