Trait goods::Source[][src]

pub trait Source<K>: Send + Sync + Debug + 'static {
    fn read(&self, key: &K) -> BoxFuture<'_, Result<Box<[u8]>>>;
}

Asset data source.

Required methods

fn read(&self, key: &K) -> BoxFuture<'_, Result<Box<[u8]>>>[src]

Reads asset asynchronously. Returns async bytes on success. Otherwise returns error E describing occurred problem.

Loading content...

Implementors

Loading content...