MCPcopy Create free account

hub / github.com/chawyehsu/hok / functions

Functions375 in github.com/chawyehsu/hok

↓ 32 callersMethodemitter
Get an outbound sender to emit events.
crates/libscoop/src/session.rs:123
↓ 26 callersMethodname
(&self)
crates/libscoop/src/package/mod.rs:110
↓ 21 callersMethodconfig
Get an immutable reference to the config held by the session. This method is primarily used for doing a fine-grained read to the config aside from re
crates/libscoop/src/session.rs:95
↓ 17 callersMethodpop
Pop a node which does not have any dependency and can be resolved. `None` will be returned if all nodes have dependencies. If `None` is returned and
crates/libscoop/src/internal/dag.rs:143
↓ 16 callersMethoddevectorize
(&self)
crates/libscoop/src/package/manifest.rs:1197
↓ 16 callersFunctionexecute
(args: Args, session: &Session)
src/cmd/cat.rs:16
↓ 16 callersFunctionf
(w: u32, x: u32, y: u32, z: u32, m: u32, c: u32, s: u32)
crates/scoop_hash/src/selfcontained/md5.rs:260
↓ 16 callersFunctiong
(w: u32, x: u32, y: u32, z: u32, m: u32, c: u32, s: u32)
crates/scoop_hash/src/selfcontained/md5.rs:269
↓ 16 callersFunctionh
(w: u32, x: u32, y: u32, z: u32, m: u32, c: u32, s: u32)
crates/scoop_hash/src/selfcontained/md5.rs:279
↓ 16 callersFunctioni
(w: u32, x: u32, y: u32, z: u32, m: u32, c: u32, s: u32)
crates/scoop_hash/src/selfcontained/md5.rs:289
↓ 14 callersMethodbuild
Build the Checksum instance for use. If no hash algorithm is specified, sha256 will be used.
crates/scoop_hash/src/lib.rs:145
↓ 14 callersMethodfile_name
(&self)
crates/libscoop/src/cache.rs:29
↓ 14 callersMethodregister_dep
(&mut self, node: N, dep_node: N)
crates/libscoop/src/internal/dag.rs:105
↓ 13 callersMethodroot_path
(&self)
crates/libscoop/src/config.rs:264
↓ 12 callersMethodset
Update config key with new value.
crates/libscoop/src/config.rs:293
↓ 11 callersMethodname
(&self)
crates/libscoop/src/bucket.rs:68
↓ 10 callersMethodis_match
(&self, s: &str)
crates/libscoop/src/package/query.rs:54
↓ 10 callersMethodurl
(&self)
crates/libscoop/src/package/mod.rs:75
↓ 9 callersMethodbucket
(&self)
crates/libscoop/src/package/mod.rs:65
↓ 8 callersMethodident
(&self)
crates/libscoop/src/package/mod.rs:104
↓ 8 callersMethodis_held
Check if the package is held. # Note Only installed package can be held, therefore this method will always return `false` if the package is not inst
crates/libscoop/src/package/mod.rs:265
↓ 8 callersFunctionnormalize_path
Normalize a path, removing things like `.` and `..`. CAUTION: This does not resolve symlinks (unlike [`std::fs::canonicalize`]). This may cause incor
crates/libscoop/src/internal/path.rs:57
↓ 8 callersMethodpath
(&self)
crates/libscoop/src/cache.rs:23
↓ 8 callersMethodregister_node
(&mut self, node: N)
crates/libscoop/src/internal/dag.rs:97
↓ 8 callersMethodversion
(&self)
crates/libscoop/src/package/mod.rs:80
↓ 7 callersMethodconsume
Consume the input data, but not finalize the calculation. This method returns `&self` to make itself chainable, so that callers can continuously consu
crates/scoop_hash/src/selfcontained/sha512.rs:190
↓ 7 callersMethodconsume
Consume the input data, but not finalize the calculation. This method returns `&self` to make itself chainable, so that callers can continuously consu
crates/scoop_hash/src/selfcontained/md5.rs:115
↓ 7 callersMethodconsume
Consume the input data, but not finalize the calculation. This method returns `&self` to make itself chainable, so that callers can continuously consu
crates/scoop_hash/src/selfcontained/sha256.rs:111
↓ 7 callersMethodconsume
Consume the input data, but not finalize the calculation. This method returns `&self` to make itself chainable, so that callers can continuously consu
crates/scoop_hash/src/selfcontained/sha1.rs:100
↓ 7 callersMethodevent_bus
Get the event bus for the session. The event bus is used for transmitting [`events`][1] between the session backend and the caller frontend. # Retur
crates/libscoop/src/session.rs:118
↓ 7 callersMethodfinalize
(self)
crates/scoop_hash/src/lib.rs:180
↓ 7 callersMethodinstall_view
Get packages that will be installed with the transaction. # Returns A reference to the vector of packages that will be installed or `None` if no pac
crates/libscoop/src/package/sync.rs:267
↓ 7 callersMethodmanifest
(&self)
crates/libscoop/src/package/mod.rs:306
↓ 7 callersMethodproxy
(&self)
crates/libscoop/src/config.rs:276
↓ 7 callersMethodreceiver
Get the receiver of the event bus. This receiver is used to receive events from the session.
crates/libscoop/src/event.rs:44
↓ 6 callersMethodconsume
(&mut self, data: &[u8])
crates/scoop_hash/src/lib.rs:172
↓ 6 callersMethodpath
(&self)
crates/libscoop/src/bucket.rs:74
↓ 5 callersMethodcache_path
(&self)
crates/libscoop/src/config.rs:254
↓ 5 callersFunctionensure_dir
(path: &P)
crates/libscoop/src/internal/fs.rs:16
↓ 5 callersMethodinstalled_version
Get the installed version of this package. # Returns The installed version of this package, if any.
crates/libscoop/src/package/mod.rs:249
↓ 5 callersFunctionmd5
(size: usize)
crates/scoop_hash/benches/md5.rs:4
↓ 5 callersFunctionpackage_query
Query packages. # Note Set `installed` to `true` to query installed packages. The returned list will be sorted by package name. # Returns A list of
crates/libscoop/src/operation.rs:357
↓ 5 callersMethodpath
(&self)
crates/libscoop/src/package/manifest.rs:778
↓ 5 callersFunctionremove_dir
(path: P)
crates/libscoop/src/internal/fs.rs:22
↓ 5 callersFunctionsha1
(size: usize)
crates/scoop_hash/benches/sha1.rs:4
↓ 5 callersFunctionsha256
(size: usize)
crates/scoop_hash/benches/sha256.rs:4
↓ 5 callersFunctionsha512
(size: usize)
crates/scoop_hash/benches/sha512.rs:4
↓ 5 callersMethodupgrade_view
Get packages that will be upgraded with the transaction. # Returns A reference to the vector of packages that will be upgraded or `None` if no packa
crates/libscoop/src/package/sync.rs:277
↓ 4 callersMethodadd
Add a bucket progress to the UI.
src/cui.rs:103
↓ 4 callersFunctionconfig_path
()
crates/libscoop/src/config.rs:499
↓ 4 callersMethoddependencies
Get the dependencies of this package. # Note There is no guarantee that whether a dependency is represented as a format of `bucket/name` or `name`.
crates/libscoop/src/package/mod.rs:180
↓ 4 callersMethodfill_install_state
(&self, state: InstallState)
crates/libscoop/src/package/mod.rs:400
↓ 4 callersFunctionquery_installed
Search installed packages.
crates/libscoop/src/package/query.rs:66
↓ 4 callersFunctionremove_symlink
(lnk: P)
crates/libscoop/src/internal/fs.rs:91
↓ 4 callersMethodscript
(&self)
crates/libscoop/src/package/manifest.rs:1162
↓ 4 callersMethodset_algo
(mut self, algo: Box<dyn Hasher>)
crates/scoop_hash/src/lib.rs:137
↓ 3 callersFunctionbucket_added
Get a list of added buckets. # Note The returned list are unsorted.
crates/libscoop/src/bucket.rs:215
↓ 3 callersMethoddescription
(&self)
crates/libscoop/src/package/mod.rs:146
↓ 3 callersMethoddownload_filenames
Get download urls of this package.
crates/libscoop/src/package/mod.rs:199
↓ 3 callersMethoddownload_urls
Get download urls of this package. # Note This method will return the actual download urls without the `#/dl.7z` fragment which is used to fake the
crates/libscoop/src/package/mod.rs:190
↓ 3 callersMethoddraw
Draw the progress to the stdout.
src/cui.rs:122
↓ 3 callersFunctionis_default
(default: &Path, path: &Path)
crates/libscoop/src/config.rs:544
↓ 3 callersMethodis_strictly_installed
Check if the package is strictly installed, which means the package is installed from the bucket it belongs to rather than from other buckets.
crates/libscoop/src/package/mod.rs:287
↓ 3 callersFunctionpackage_sync
Sync packages. # Note The meaning of `sync` packages is to download, (un)install and/or upgrade packages. # Errors I/O errors will be returned if t
crates/libscoop/src/operation.rs:401
↓ 3 callersFunctionpar_read_dir
Helper function to interate entries in a directory in parallel.
crates/libscoop/src/bucket.rs:196
↓ 3 callersFunctionprompt_yes_no
Prompt user to continue or not.
src/cui.rs:155
↓ 3 callersFunctionquery_synced
Search available packages.
crates/libscoop/src/package/query.rs:280
↓ 3 callersMethodregister_deps
(&mut self, node: N, dep_nodes: Vec<N>)
crates/libscoop/src/internal/dag.rs:113
↓ 3 callersMethodreplace_view
Get packages that will be replaced with the transaction. # Returns A reference to the vector of packages that will be replaced or `None` if no packa
crates/libscoop/src/package/sync.rs:287
↓ 3 callersMethodresult_string
(self)
crates/scoop_hash/src/selfcontained/sha512.rs:178
↓ 3 callersMethodresult_string
(self)
crates/scoop_hash/src/selfcontained/md5.rs:103
↓ 3 callersMethodresult_string
(self)
crates/scoop_hash/src/selfcontained/sha256.rs:99
↓ 3 callersMethodresult_string
(self)
crates/scoop_hash/src/selfcontained/sha1.rs:88
↓ 3 callersFunctionroot_path
()
crates/libscoop/src/config.rs:505
↓ 3 callersMethodsender
Get the sender of the event bus. This sender is used to send events into the session.
crates/libscoop/src/event.rs:37
↓ 3 callersMethodsha256
Use the sha256 hash algorithm.
crates/scoop_hash/src/lib.rs:126
↓ 3 callersMethodshims
Get shims defined in this package. # Returns A list of shims defined in this package.
crates/libscoop/src/package/mod.rs:350
↓ 3 callersMethodstate
Get the update progress state of the bucket.
crates/libscoop/src/bucket.rs:277
↓ 3 callersMethodunregister_node
(&mut self, node: N)
crates/libscoop/src/internal/dag.rs:130
↓ 3 callersMethodupdate
Update progress bar with the given context.
src/cui.rs:32
↓ 3 callersMethodupgradable
Check if this package is upgradable. # Returns The reference to the upgradable package of this package when it is upgradable, otherwise `None`.
crates/libscoop/src/package/mod.rs:338
↓ 3 callersFunctionwrite_json
Write given serializable data to a JSON file at given path. This function will create the file if it does not exist, and truncate it.
crates/libscoop/src/internal/fs.rs:73
↓ 2 callersMethodarch
(&self)
crates/libscoop/src/package/manifest.rs:1261
↓ 2 callersMethodbin
Get `bin` field of this manifest.
crates/libscoop/src/package/manifest.rs:834
↓ 2 callersFunctioncache_list
Get a list of downloaded cache files. # Returns A list of downloaded cache files. # Errors I/O errors will be returned if the cache directory is n
crates/libscoop/src/operation.rs:211
↓ 2 callersFunctioncache_path
()
crates/libscoop/src/config.rs:517
↓ 2 callersFunctioncache_remove
Remove cache files by query. # Errors I/O errors will be returned if the cache directory is not readable or failed to remove the cache files.
crates/libscoop/src/operation.rs:259
↓ 2 callersFunctioncompare_versions
FIXME: there is a wide knowledge of version comparsion, And of cause I can't implement all of them at one commit, so plese fix me. Perhaps https://git
crates/libscoop/src/internal/mod.rs:14
↓ 2 callersMethodcompress
(&mut self, block: [u8; 128])
crates/scoop_hash/src/selfcontained/sha512.rs:244
↓ 2 callersMethodcompress
(&mut self, block: [u8; 64])
crates/scoop_hash/src/selfcontained/md5.rs:169
↓ 2 callersMethodcompress
(&mut self, block: [u8; 64])
crates/scoop_hash/src/selfcontained/sha256.rs:165
↓ 2 callersMethodcompress
(&mut self, block: [u8; 64])
crates/scoop_hash/src/selfcontained/sha1.rs:154
↓ 2 callersMethodconfig_mut
Get a mutable reference to the config held by the session. This method is only directly accessible from within the crate itself. It maybe indirectly
crates/libscoop/src/session.rs:104
↓ 2 callersFunctionconfig_set
Set a configuation key. # Errors A [`ConfigInUse`][1] error will be returned if the config is borrowed elsewhere. A [`ConfigKeyInvalid`][2] error w
crates/libscoop/src/operation.rs:303
↓ 2 callersMethodcookie
Get the cookie of this package.
crates/libscoop/src/package/mod.rs:162
↓ 2 callersMethoddownload_size
Get the total download size of the transaction. # Returns A `DownloadSize` reference that contains the total download size of the transaction.
crates/libscoop/src/package/sync.rs:307
↓ 2 callersMethodeq
(&self, other: &Package)
crates/libscoop/src/package/mod.rs:422
↓ 2 callersFunctionfetch_options
(proxy: Option<&str>)
crates/libscoop/src/internal/git.rs:6
↓ 2 callersFunctionglobal_path
()
crates/libscoop/src/config.rs:529
↓ 2 callersFunctionhome_join
(path: P)
crates/libscoop/src/config.rs:493
next →1–100 of 375, ranked by callers