Function re_data_loader::load_file::load

source ·
pub(crate) fn load(
    settings: &DataLoaderSettings,
    path: &Path,
    contents: Option<Cow<'_, [u8]>>
) -> Result<Receiver<LoadedData>, DataLoaderError>
Expand description

Loads the data at path using all available crate::DataLoaders.

On success, returns a channel with all the LoadedData:

  • On native, this is filled asynchronously from other threads.
  • On wasm, this is pre-filled synchronously.

There is only one way this function can return an error: not a single crate::DataLoader (whether it is builtin, custom or external) was capable of loading the data, in which case DataLoaderError::Incompatible will be returned.