Function re_data_loader::load_from_file_contents

source ·
pub fn load_from_file_contents(
    settings: &DataLoaderSettings,
    file_source: FileSource,
    filepath: &Path,
    contents: Cow<'_, [u8]>,
    tx: &Sender<LogMsg>
) -> Result<(), DataLoaderError>
Expand description

Loads the given contents using all crate::DataLoaders available.

A single file might be handled by more than one loader.

Synchronously checks that the file can be loaded. Beyond that, all errors are asynchronous and handled directly by the crate::DataLoaders themselves (i.e. they’re logged).

path is only used for informational purposes, no data is ever read from the filesystem.