Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amethyst/distill
/ functions
Functions
852 in github.com/amethyst/distill
⨍
Functions
852
◇
Types & classes
232
↓ 4 callers
Method
get_reader
(&self)
loader/src/packfile_io.rs:47
↓ 4 callers
Method
get_rw_txn
(&self)
daemon/src/file_tracker.rs:529
↓ 4 callers
Method
init_id
(self, size: u32)
schema/src/schemas/data_capnp.rs:170
↓ 4 callers
Method
into_reader
(self)
schema/src/schemas/pack_capnp.rs:166
↓ 4 callers
Method
process
Processes pending load operations. Load operations include: Requesting asset metadata. Requesting asset data. Committing completed [`AssetLoadOp`]s.
loader/src/loader.rs:1148
↓ 4 callers
Function
process_requests
(runtime: &mut RpcRuntime, requests: &mut QueuedRequests)
loader/src/rpc_io.rs:361
↓ 4 callers
Method
remove_ref
Removes a reference to an asset. # Parameters `load_handle`: ID allocated by `Loader` to track loading of the asset.
loader/src/loader.rs:1131
↓ 4 callers
Method
resolve_asset_ref
Given a "current directory" and a reference (that might be a relative path), return the appropriate imported asset ID.
daemon/src/file_asset_source.rs:444
↓ 4 callers
Method
set_importer_contexts
(&mut self, importer_contexts: &'a [Box<dyn ImporterContext>])
daemon/src/source_pair_import.rs:219
↓ 4 callers
Function
to_meta_path
(p: &Path)
core/src/utils.rs:37
↓ 4 callers
Method
txn
(&'a self)
daemon/src/capnp_db.rs:153
↓ 4 callers
Function
update_deleted_dirty_entry
Checks if the file is in source_files. If it is, write a delete entry to the dirty_files table
daemon/src/file_tracker.rs:230
↓ 4 callers
Method
version
(&self)
src/lib.rs:179
↓ 4 callers
Method
with_importer
(mut self, exts: &[&str], importer: B)
daemon/src/daemon.rs:113
↓ 4 callers
Method
write_metadata
Write the .meta file to disk
daemon/src/source_pair_import.rs:671
↓ 3 callers
Method
add_ref_handle
(&self, handle: LoadHandle, num_refs: usize)
loader/src/loader.rs:225
↓ 3 callers
Method
any
(&self)
examples/handle_integration/src/storage.rs:151
↓ 3 callers
Function
autocomplete_asset_uuids
( ctx: &Context, starting_str: Option<&str>, whitespaces_last: usize, )
cli/src/lib.rs:467
↓ 3 callers
Function
build_source_info
Creates a SourceFileInfo capn proto message
daemon/src/file_tracker.rs:216
↓ 3 callers
Method
delete_dirty_file_state
Deletes an item from dirty_files table. This function must be used carefully to avoid a race condition; check that the SourceFileInfo stored in the ta
daemon/src/file_tracker.rs:653
↓ 3 callers
Method
get_asset_metadata_request
( &self, )
schema/src/schemas/service_capnp.rs:1055
↓ 3 callers
Method
get_import_artifacts_request
( &self, )
schema/src/schemas/service_capnp.rs:1095
↓ 3 callers
Method
get_metadata
( self, )
schema/src/schemas/data_capnp.rs:4110
↓ 3 callers
Method
get_path_for_assets_request
( &self, )
schema/src/schemas/service_capnp.rs:1122
↓ 3 callers
Method
get_result_metadata_from_cache
Read the result of previous import into self.result_metadata
daemon/src/source_pair_import.rs:304
↓ 3 callers
Method
get_snapshot
( self, )
schema/src/schemas/service_capnp.rs:6681
↓ 3 callers
Method
get_version
(self)
schema/src/schemas/data_capnp.rs:2119
↓ 3 callers
Method
handle_updated_symlink
Called when we receive about changes, most of the time we will detect that the path is not a symlink and do nothing
daemon/src/watcher.rs:269
↓ 3 callers
Method
identifier
(&self)
loader/src/io.rs:69
↓ 3 callers
Method
import_boxed
( &'a self, op: &'a mut ImportOp, source: &'a mut (dyn AsyncRead + Unpin + Send + Sync
importer/src/boxed_importer.rs:89
↓ 3 callers
Method
import_hash
(&self)
daemon/src/source_pair_import.rs:281
↓ 3 callers
Method
import_result_from_cached_data
Regenerate PairImportResult based on cached previous import. This is used when we reimport an asset to update other assets that depend on it. We also
daemon/src/source_pair_import.rs:353
↓ 3 callers
Method
import_source
Read the asset from disk, returns an updated PairImportResult (i.e. hash will match the imported data, assets will be refreshed with data from disk)
daemon/src/source_pair_import.rs:618
↓ 3 callers
Method
needs_source_import
Checks if anything has changed (like importer version number being bumped), requiring a re-import. Returns true if source_metadata or result_metadata
daemon/src/source_pair_import.rs:225
↓ 3 callers
Function
parse_artifact_metadata
(artifact: &data::artifact_metadata::Reader<'_>)
schema/src/lib.rs:101
↓ 3 callers
Method
put_build_deps_reverse
( &self, txn: &mut RwTransaction<'_>, id: &AssetUuid, dependees: Vec<AssetUuid
daemon/src/asset_hub.rs:181
↓ 3 callers
Method
remove_refs
(&self, load: LoadHandle, num_refs: usize)
loader/src/loader.rs:300
↓ 3 callers
Method
requested_assets
(&self)
loader/src/io.rs:116
↓ 3 callers
Function
resolve_source_path
converts a relative path in one asset file pointing at another asset file to a canonicalized path to that file from the root of the asset folder
daemon/src/file_asset_source.rs:153
↓ 3 callers
Method
set_source_hash
(&mut self, source_hash: u64)
daemon/src/source_pair_import.rs:191
↓ 3 callers
Method
update_asset
Writes the asset metadata to the DB. For any build dependency, we need to update the build_dep_reverse table. If there was already an asset metadata s
daemon/src/asset_hub.rs:202
↓ 3 callers
Function
wait_for_status
( status: LoadStatus, handle: LoadHandle, loader: &mut Loader, storage: &mut S
src/lib.rs:220
↓ 3 callers
Method
with
(loader: &dyn LoaderInfoProvider, sender: Sender<RefOp>, f: F)
loader/src/handle.rs:279
↓ 3 callers
Method
with
(&'static self, f: F)
loader/src/task_local.rs:85
↓ 3 callers
Method
with_address
(mut self, address: SocketAddr)
daemon/src/daemon.rs:108
↓ 3 callers
Method
with_asset_dirs
(mut self, dirs: Vec<PathBuf>)
daemon/src/daemon.rs:171
↓ 3 callers
Method
with_db_path
(mut self, path: P)
daemon/src/daemon.rs:103
↓ 2 callers
Function
add_asset_changelog_entry
Utility function called from add_changes
daemon/src/asset_hub.rs:82
↓ 2 callers
Method
add_changes
This is usually called from FileAssetSource::process_asset_metadata, after calling process_metadata_changes, which will call update_path/remove_path a
daemon/src/asset_hub.rs:366
↓ 2 callers
Function
add_symlink_dir
( asset_dir: &P, name: &Q, target: &R, )
daemon/src/file_tracker.rs:960
↓ 2 callers
Function
add_test_dir
(asset_dir: &Path, name: &str)
daemon/src/file_tracker.rs:915
↓ 2 callers
Method
alloc
(&self)
loader/src/storage.rs:225
↓ 2 callers
Method
any_mut
(&mut self)
importer/src/serde_obj.rs:16
↓ 2 callers
Method
begin_serialize_asset
(&mut self, id: AssetUuid)
daemon/src/source_pair_import.rs:155
↓ 2 callers
Function
build_artifact_message
( artifact: &SerializedAsset<T>, )
daemon/src/artifact_cache.rs:89
↓ 2 callers
Function
build_artifact_metadata
( artifact_metadata: &ArtifactMetadata, artifact: &mut data::artifact_metadata::Builder<'_>, )
schema/src/lib.rs:209
↓ 2 callers
Function
build_asset_metadata
( metadata: &AssetMetadata, m: &mut data::asset_metadata::Builder<'_>, source: data::AssetSource,
schema/src/lib.rs:247
↓ 2 callers
Method
build_import_result
( &mut self, op: Option<ImportOp>, importer: &dyn BoxedImporter, options: Box<
daemon/src/source_pair_import.rs:415
↓ 2 callers
Method
calc_import_hash
( &self, options: &dyn SerdeObj, state: &dyn SerdeObj, importer_version: u32,
daemon/src/source_pair_import.rs:258
↓ 2 callers
Method
capnp_iter_from
(mut self, key: &K)
daemon/src/capnp_db.rs:60
↓ 2 callers
Function
capnp_reader_from_slice
Common setup for the capnp message Reader, used by `PackfileMessageReaderFile` and `PackfileMessageReaderBuffer`
loader/src/packfile_io.rs:109
↓ 2 callers
Method
clear_db
(&mut self, db: lmdb::Database)
daemon/src/capnp_db.rs:230
↓ 2 callers
Function
clear_dirty_file_state
(t: &FileTracker)
daemon/src/file_tracker.rs:996
↓ 2 callers
Function
commit_asset
( handle: LoadHandle, load: &mut AssetLoad, version: u32, asset_storage: &mut dyn AssetStorage
loader/src/loader.rs:1194
↓ 2 callers
Method
connect
(&mut self, connection_type: RpcConnectionType)
loader/src/rpc_io.rs:89
↓ 2 callers
Method
default_state
(&self)
importer/src/boxed_importer.rs:162
↓ 2 callers
Method
delete_asset_path
(&self, txn: &mut RwTransaction<'_>, asset_id: &AssetUuid)
daemon/src/file_asset_source.rs:509
↓ 2 callers
Method
delete_source_metadata
(&self, txn: &mut RwTransaction<'_>, path: &Path)
daemon/src/file_asset_source.rs:404
↓ 2 callers
Method
end_serialize_asset
(&mut self, id: AssetUuid)
daemon/src/source_pair_import.rs:161
↓ 2 callers
Function
expect_no_file_state
(t: &FileTracker, asset_dir: &Path, name: &str)
daemon/src/file_tracker.rs:896
↓ 2 callers
Method
get
( &'a self, db: lmdb::Database, key: &K, )
daemon/src/capnp_db.rs:101
↓ 2 callers
Method
get_artifact
(self)
schema/src/schemas/pack_capnp.rs:71
↓ 2 callers
Method
get_artifacts
(&mut self, requests: Vec<DataRequest>)
loader/src/rpc_io.rs:236
↓ 2 callers
Method
get_artifacts
( self, )
schema/src/schemas/service_capnp.rs:3693
↓ 2 callers
Method
get_asset_id
(self)
schema/src/schemas/data_capnp.rs:3009
↓ 2 callers
Method
get_assets_for_paths_request
( &self, )
schema/src/schemas/service_capnp.rs:1131
↓ 2 callers
Method
get_by_path
(&'a self, path: &Path)
daemon/src/daemon.rs:34
↓ 2 callers
Function
get_handle_ref
(asset_ref: AssetRef)
loader/src/handle.rs:450
↓ 2 callers
Method
get_importer_options_type
(self)
schema/src/schemas/data_capnp.rs:2012
↓ 2 callers
Method
get_importer_state_type
(self)
schema/src/schemas/data_capnp.rs:2036
↓ 2 callers
Method
get_importer_type
(self)
schema/src/schemas/data_capnp.rs:2076
↓ 2 callers
Method
get_importer_version
(self)
schema/src/schemas/data_capnp.rs:2007
↓ 2 callers
Method
get_latest_change
(self)
schema/src/schemas/service_capnp.rs:6676
↓ 2 callers
Method
get_load_deps
( self, )
schema/src/schemas/data_capnp.rs:3033
↓ 2 callers
Method
get_load_handle
(&self, asset_ref: &AssetRef)
loader/src/handle.rs:333
↓ 2 callers
Function
get_path_file_state
Read filestate from disk (i.e. if the file exists, modification data, length, etc.)
daemon/src/source_pair_import.rs:869
↓ 2 callers
Method
get_path_refs
( &self, txn: &'a V, path: &Path, )
daemon/src/file_asset_source.rs:568
↓ 2 callers
Method
get_search_tags
( self, )
schema/src/schemas/data_capnp.rs:3454
↓ 2 callers
Method
get_snapshot_request
( &self, )
schema/src/schemas/service_capnp.rs:815
↓ 2 callers
Method
get_source
( self, )
schema/src/schemas/data_capnp.rs:3490
↓ 2 callers
Method
get_source_info
( self, )
schema/src/schemas/data_capnp.rs:1050
↓ 2 callers
Method
handle_notify_event
Handles events from notify, and manually triggered from calling scan_directory()
daemon/src/watcher.rs:332
↓ 2 callers
Method
handle_update
(&self)
daemon/src/file_asset_source.rs:1458
↓ 2 callers
Method
hash_source
(&mut self)
daemon/src/source_pair_import.rs:199
↓ 2 callers
Method
imbue
(&mut self, cap_table: &'a ::capnp::private::layout::CapTable)
schema/src/schemas/pack_capnp.rs:55
↓ 2 callers
Method
include_asset_metadata
Whether the response should include asset metadata or not, for debugging purposes.
loader/src/io.rs:121
↓ 2 callers
Method
indirection_table
Returns a reference to the loader's [`IndirectionTable`]. When a user fetches an asset by LoadHandle, implementors of [`AssetStorage`] should resolve
loader/src/loader.rs:1174
↓ 2 callers
Method
init_latest_artifact
( self, )
schema/src/schemas/data_capnp.rs:3697
↓ 2 callers
Method
is_path
(&self)
core/src/lib.rs:193
↓ 2 callers
Method
load_handle
(&self)
loader/src/handle.rs:113
← previous
next →
101–200 of 852, ranked by callers