[−][src]Trait goods::Source
Asset data source.
Required methods
fn read(&self, key: &K) -> BoxFuture<'_, Result<Vec<u8>, SourceError>>
Reads asset asynchronously.
Returns async bytes on success.
Otherwise returns error E
describing occurred problem.
Implementors
impl<P: ?Sized> Source<P> for FileSource where
P: AsRef<str>,
[src]
P: AsRef<str>,
impl<U> Source<U> for ReqwestSource where
U: IntoUrl + Clone + 'static,
[src]
U: IntoUrl + Clone + 'static,