DataSource

Trait DataSource 

Source
pub trait DataSource {
    // Required methods
    fn load_from_storage(
        &mut self,
        project_config: &HydrateProjectConfiguration,
        edit_context: &mut EditContext,
        import_job_to_queue: &mut ImportJobToQueue,
    );
    fn flush_to_storage(&mut self, edit_context: &mut EditContext);
    fn is_generated_asset(&self, asset_id: AssetId) -> bool;
    fn persist_generated_asset(
        &mut self,
        edit_context: &mut EditContext,
        asset_id: AssetId,
    );
    fn edit_context_has_unsaved_changes(
        &self,
        edit_context: &EditContext,
    ) -> bool;
    fn append_pending_file_operations(
        &self,
        edit_context: &EditContext,
        pending_file_operations: &mut PendingFileOperations,
    );
}

Required Methods§

Source

fn load_from_storage( &mut self, project_config: &HydrateProjectConfiguration, edit_context: &mut EditContext, import_job_to_queue: &mut ImportJobToQueue, )

Source

fn flush_to_storage(&mut self, edit_context: &mut EditContext)

Source

fn is_generated_asset(&self, asset_id: AssetId) -> bool

Source

fn persist_generated_asset( &mut self, edit_context: &mut EditContext, asset_id: AssetId, )

Source

fn edit_context_has_unsaved_changes(&self, edit_context: &EditContext) -> bool

Source

fn append_pending_file_operations( &self, edit_context: &EditContext, pending_file_operations: &mut PendingFileOperations, )

Implementors§