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
↓ 2 callers
Method
load_status
Returns the load status of the asset. # Parameters `loader`: Loader that is loading the asset. # Type Parameters `L`: Asset loader type.
loader/src/handle.rs:624
↓ 2 callers
Method
make_relative_path
Find if this file is contained within any of the watched directories. If it is, switch to a relative path starting from that watched directory.
daemon/src/file_tracker.rs:503
↓ 2 callers
Method
notify_listeners
(&self)
daemon/src/asset_hub.rs:492
↓ 2 callers
Function
oneshot
Thin wrapper around `futures::channel::oneshot` to match `tokio::sync::oneshot` interface.
core/src/distill_signal.rs:6
↓ 2 callers
Function
print_asset_metadata
(asset: &data::asset_metadata::Reader<'_>)
cli/src/lib.rs:239
↓ 2 callers
Function
process
(loader: &mut Loader, game: &mut Game, chan: &Receiver<RefOp>)
examples/handle_integration/src/game.rs:16
↓ 2 callers
Method
process_metadata_changes
Given the result of importing some assets, update the DB. This includes deleting assets that no longer exist and inserting updates for the assets that
daemon/src/file_asset_source.rs:860
↓ 2 callers
Method
put_bytes
(&mut self, db: lmdb::Database, key: &K, value: &V)
daemon/src/capnp_db.rs:195
↓ 2 callers
Method
read_dirty_files
Returns file state from dirty_files table
daemon/src/file_tracker.rs:591
↓ 2 callers
Method
read_source_metadata_from_file
Read the .meta file into self.source_metadata
daemon/src/source_pair_import.rs:286
↓ 2 callers
Method
regenerate_import_artifact
Given an asset ID, reimports the source file from which it was generated
daemon/src/file_asset_source.rs:662
↓ 2 callers
Method
register_listener_request
( &self, )
schema/src/schemas/service_capnp.rs:806
↓ 2 callers
Method
resolve_metadata_asset_refs
Replaces any build_deps/load_deps that is unresolved (for example, because it's a path rather than a UUID) with a ref that is UUID-based
daemon/src/file_asset_source.rs:816
↓ 2 callers
Method
resolve_ref
pub fn enter(&mut self) { for handle in self.0.iter_mut() { handle.enter(); } } pub fn exit(&mut self) { for handle in self.0.iter_mut().rev() { handl
daemon/src/source_pair_import.rs:149
↓ 2 callers
Method
result_metadata
The ImportResultMetadata includes the results of the import operation (i.e. AssetMetadata for all assets in the source file
daemon/src/source_pair_import.rs:187
↓ 2 callers
Function
run
()
examples/daemon_with_loader/src/game.rs:152
↓ 2 callers
Method
run
(&self, ctx: &Context, args: Vec<&str>)
cli/src/lib.rs:105
↓ 2 callers
Method
scope
(&'s self, fut: BoxFuture<'s, ()>)
loader/src/handle.rs:374
↓ 2 callers
Function
serialize_handle
(load: LoadHandle, serializer: S)
loader/src/handle.rs:419
↓ 2 callers
Function
set_assetref_list
( asset_ids: &[AssetRef], builder: &mut capnp::struct_list::Builder<'_, data::asset_ref::Owned>, )
schema/src/lib.rs:67
↓ 2 callers
Function
set_db_version
(env: &Environment)
daemon/src/daemon.rs:367
↓ 2 callers
Method
set_import_hash
(&mut self, value: ::capnp::data::Reader<'_>)
schema/src/schemas/data_capnp.rs:2481
↓ 2 callers
Method
set_listener
( &mut self, value: crate::service_capnp::asset_hub::listener::Client,
schema/src/schemas/service_capnp.rs:7158
↓ 2 callers
Method
set_meta_hash
(&mut self, meta_hash: u64)
daemon/src/source_pair_import.rs:195
↓ 2 callers
Method
set_num
(&mut self, value: u64)
schema/src/schemas/data_capnp.rs:4613
↓ 2 callers
Method
set_snapshot
( &mut self, value: crate::service_capnp::asset_hub::snapshot::Client,
schema/src/schemas/service_capnp.rs:6793
↓ 2 callers
Method
source_metadata
The SourceMetadata is the in-memory representation of the .meta file
daemon/src/source_pair_import.rs:181
↓ 2 callers
Function
spawn_daemon
( daemon_address: &str, )
src/lib.rs:374
↓ 2 callers
Function
timeout
(dur: Duration, f: F)
daemon/src/timeout.rs:42
↓ 2 callers
Function
try_clear_db
(env: &Environment, force_clear_db: bool)
daemon/src/daemon.rs:321
↓ 2 callers
Method
watch
(&mut self, path: &Path)
daemon/src/watcher.rs:228
↓ 1 callers
Function
accept_websocket_stream
( stream: S, )
daemon/src/websocket_async_io.rs:10
↓ 1 callers
Method
ack_dirty_file_states
If the file state in the dirty files table matches the data we just imported, we can clear the dirty state. We avoid race conditions by using a write
daemon/src/file_asset_source.rs:1077
↓ 1 callers
Method
add_dirty_file
Checks if the file exists. If it exists, populate source_files and dirty_files tables. Otherwise, write a deleted message to the dirty_files table
daemon/src/file_tracker.rs:568
↓ 1 callers
Method
add_importer
(&mut self, exts: &[&str], importer: B)
daemon/src/daemon.rs:121
↓ 1 callers
Method
add_path_ref
( &self, txn: &'a mut RwTransaction<'_>, source: &Path, path_ref: &Path, )
daemon/src/file_asset_source.rs:514
↓ 1 callers
Method
add_ref_indirect
(&self, id: IndirectIdentifier)
loader/src/loader.rs:323
↓ 1 callers
Function
add_rename_event
Adds a new record to rename_file_events, with the key being a sequence ID (we first read the table to determine latest ID, increment, then write with
daemon/src/file_tracker.rs:169
↓ 1 callers
Function
add_symlink_file
( asset_dir: &P, name: &Q, target: &R, )
daemon/src/file_tracker.rs:931
↓ 1 callers
Function
artifact_to_serialized_asset
( artifact: &artifact::Reader<'a>, )
daemon/src/asset_hub_service.rs:82
↓ 1 callers
Method
asset
(&self, storage: &'a impl TypedAssetStorage<T>)
loader/src/handle.rs:186
↓ 1 callers
Method
asset_id
(&self)
loader/src/io.rs:24
↓ 1 callers
Function
asset_tree
()
src/lib.rs:356
↓ 1 callers
Function
async_main
( local: &async_executor::LocalExecutor<'_>, )
cli/src/main.rs:8
↓ 1 callers
Method
autocomplete
(&self, cmdline: String)
cli/src/shell.rs:66
↓ 1 callers
Function
autocomplete_asset_paths
( ctx: &Context, starting_str: Option<&str>, whitespaces_last: usize, )
cli/src/lib.rs:424
↓ 1 callers
Method
check_asset_changes
(&mut self, loader: &LoaderState)
loader/src/rpc_io.rs:51
↓ 1 callers
Method
check_for_importer_changes
Scan all file metadata and compare them with the default importer state. (For example, the default options or the version number of the importer.) If
daemon/src/file_asset_source.rs:1165
↓ 1 callers
Method
clear_rename_events
Clears the rename_file_events table. To avoid race conditions, read all the rename events, process them, and clear them in the same transaction
daemon/src/file_tracker.rs:561
↓ 1 callers
Method
clone
(&self)
schema/src/schemas/service_capnp.rs:799
↓ 1 callers
Method
commit_asset_version
( &mut self, _asset_type: &AssetTypeId, loader_handle: LoadHandle,
src/lib.rs:117
↓ 1 callers
Function
create_context
( local: &async_executor::LocalExecutor<'_>, )
cli/src/lib.rs:55
↓ 1 callers
Method
create_file
( &mut self, _: CreateFileParams, _: CreateFileResults,
schema/src/schemas/service_capnp.rs:1249
↓ 1 callers
Function
default_capnp_reader_options_unbounded
Used in trusted cases like reading a file from disk
schema/src/lib.rs:25
↓ 1 callers
Function
default_importer_contexts
()
daemon/src/daemon.rs:66
↓ 1 callers
Function
default_importers
()
daemon/src/daemon.rs:76
↓ 1 callers
Method
default_options
(&self, import_source: ImportSource<'_>)
importer/src/lib.rs:186
↓ 1 callers
Method
default_options_boxed
(&self, import_source: ImportSource<'_>)
importer/src/boxed_importer.rs:152
↓ 1 callers
Method
delete_file
( &mut self, _: DeleteFileParams, _: DeleteFileResults,
schema/src/schemas/service_capnp.rs:1258
↓ 1 callers
Method
deserialize_metadata
( &self, deserializer: &mut dyn Deserializer<'_>, )
importer/src/boxed_importer.rs:170
↓ 1 callers
Method
deserialize_options
( &self, deserializer: &mut dyn Deserializer<'_>, )
importer/src/boxed_importer.rs:182
↓ 1 callers
Method
deserialize_state
( &self, deserializer: &mut dyn Deserializer<'_>, )
importer/src/boxed_importer.rs:189
↓ 1 callers
Function
do_import_artifact_request
( asset: &DataRequest, snapshot: &asset_hub::snapshot::Client, )
loader/src/rpc_io.rs:316
↓ 1 callers
Function
do_metadata_request
( asset: &MetadataRequest, snapshot: &asset_hub::snapshot::Client, )
loader/src/rpc_io.rs:286
↓ 1 callers
Function
do_resolve_request
( resolve: &ResolveRequest, snapshot: &asset_hub::snapshot::Client, )
loader/src/rpc_io.rs:329
↓ 1 callers
Method
drain_outputs
(self)
processing/src/processor.rs:417
↓ 1 callers
Method
drop_listener
(&self, listener: ListenerID)
daemon/src/asset_hub.rs:511
↓ 1 callers
Method
enabled
(&self, metadata: &Metadata<'_>)
daemon/src/lib.rs:48
↓ 1 callers
Method
execute
( &mut self, _root: NodeId, )
processing/src/graph.rs:98
↓ 1 callers
Method
execute_command
(&self, cmdline: &str)
cli/src/shell.rs:101
↓ 1 callers
Method
export
Writes a set of assets to a source file format that can be read by `import`.
importer/src/lib.rs:207
↓ 1 callers
Method
export_boxed
( &'a self, output: &'a mut (dyn AsyncWrite + Unpin + Send + Sync), options: Box<dyn S
importer/src/boxed_importer.rs:122
↓ 1 callers
Function
export_pair
Utility function that creates a SourcePairImport and returns an import result, based on the given serialized assets. This will update the source and .
daemon/src/source_pair_import.rs:888
↓ 1 callers
Method
export_source
( &self, path: PathBuf, assets: Vec<SerializedAssetVec>, )
daemon/src/file_asset_source.rs:1546
↓ 1 callers
Method
export_source
Write the given serialized asset to disk, returns an updated PairImportResult (i.e. hash will match the exported data). This has the side effect of up
daemon/src/source_pair_import.rs:559
↓ 1 callers
Method
free
(&self, _handle: LoadHandle)
loader/src/storage.rs:229
↓ 1 callers
Method
from_utf8
(&self, vec: Vec<u8>)
src/lib.rs:142
↓ 1 callers
Method
get_all_asset_metadata
( &mut self, _: GetAllAssetMetadataParams, _: GetAllAssetMetad
schema/src/schemas/service_capnp.rs:1177
↓ 1 callers
Method
get_artifact_impl
(&self, request: &DataRequest)
loader/src/packfile_io.rs:209
↓ 1 callers
Method
get_as_bytes
(&'a self, db: lmdb::Database, key: &K)
daemon/src/capnp_db.rs:121
↓ 1 callers
Method
get_asset
(&self, load: LoadHandle)
loader/src/loader.rs:239
↓ 1 callers
Method
get_asset
(self)
schema/src/schemas/service_capnp.rs:3912
↓ 1 callers
Method
get_asset_candidates
(&mut self, requests: Vec<ResolveRequest>)
loader/src/rpc_io.rs:230
↓ 1 callers
Method
get_asset_candidates_impl
( &self, request: &ResolveRequest, )
loader/src/packfile_io.rs:223
↓ 1 callers
Method
get_asset_changes
( &mut self, _: GetAssetChangesParams, _: GetAssetChangesResul
schema/src/schemas/service_capnp.rs:1195
↓ 1 callers
Method
get_asset_changes_iter
( &self, txn: &'a V, )
daemon/src/asset_hub.rs:484
↓ 1 callers
Method
get_asset_changes_request
( &self, )
schema/src/schemas/service_capnp.rs:1086
↓ 1 callers
Method
get_asset_id
(&self, load: LoadHandle)
loader/src/handle.rs:350
↓ 1 callers
Method
get_asset_metadata
( &mut self, _: GetAssetMetadataParams, _: GetAssetMetadataRes
schema/src/schemas/service_capnp.rs:1159
↓ 1 callers
Method
get_asset_metadata_iter
( &self, txn: &'a V, )
daemon/src/asset_hub.rs:156
↓ 1 callers
Method
get_asset_metadata_with_dependencies
(&mut self, request: MetadataRequest)
loader/src/rpc_io.rs:224
↓ 1 callers
Method
get_asset_metadata_with_dependencies
( &mut self, _: GetAssetMetadataWithDependenciesParams, _: Get
schema/src/schemas/service_capnp.rs:1168
↓ 1 callers
Method
get_asset_metadata_with_dependencies_impl
( &self, request: &MetadataRequest, )
loader/src/packfile_io.rs:171
↓ 1 callers
Method
get_asset_metadata_with_dependencies_request
(&self)
schema/src/schemas/service_capnp.rs:1064
↓ 1 callers
Method
get_asset_with_version
(&self, handle: &T)
examples/handle_integration/src/storage.rs:78
↓ 1 callers
Method
get_assets_for_paths
( &mut self, _: GetAssetsForPathsParams, _: GetAssetsForPathsR
schema/src/schemas/service_capnp.rs:1240
↓ 1 callers
Method
get_build_pipeline
( self, )
schema/src/schemas/data_capnp.rs:3469
↓ 1 callers
Method
get_cached_metadata
Returns metadata about the inputs and results of an import operation
daemon/src/file_asset_source.rs:1686
↓ 1 callers
Method
get_changes
( self, )
schema/src/schemas/service_capnp.rs:3244
↓ 1 callers
Method
get_compressed_size
(self)
schema/src/schemas/data_capnp.rs:3071
← previous
next →
201–300 of 852, ranked by callers