Trait pixel_widgets::loader::Loader [−][src]
pub trait Loader: Send + Sync { type Load: Future<Output = Result<Vec<u8>, Self::Error>> + Send; type Wait: Future<Output = Result<(), Self::Error>> + Send; type Error: 'static + Error + Send + Sync; fn load(&self, url: impl AsRef<str>) -> Self::Load; fn wait(&self, url: impl AsRef<str>) -> Self::Wait; }
Expand description
A way to load URLs from a data source.
Included implementations:
PathBuf, loads data from disk using thePathBufas working directory.
Associated Types
Required methods
Implementors
impl Loader for FsLoader[src]
impl Loader for FsLoader[src]