Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TinyChain-Inc/freqfs
/ functions
Functions
126 in github.com/TinyChain-Inc/freqfs
⨍
Functions
126
◇
Types & classes
22
↓ 59 callers
Method
clone
(&self)
src/dir.rs:158
↓ 27 callers
Method
write
Lock this directory for writing.
src/dir.rs:717
↓ 21 callers
Method
read
Lock this directory for reading.
src/dir.rs:687
↓ 16 callers
Method
bump
(&self, path: &PathBuf, file_size: Option<usize>)
src/cache.rs:59
↓ 16 callers
Method
get_file
Get the file with the given `name` from this [`Dir`], if present. Also returns `None` if the entry at `name` is a directory.
src/dir.rs:292
↓ 14 callers
Function
create_dir
(path: &Path)
src/file.rs:741
↓ 13 callers
Method
create_file
Create a new file in this [`Dir`] with the given `contents`.
src/dir.rs:382
↓ 12 callers
Method
insert
(&self, path: PathBuf, file: FileLock<FE>, file_size: usize)
src/cache.rs:71
↓ 12 callers
Method
sync
(&mut self)
src/dir.rs:522
↓ 10 callers
Function
load
(path: &Path)
src/file.rs:648
↓ 9 callers
Method
clone
(&self)
src/file.rs:175
↓ 9 callers
Function
deleted
()
src/file.rs:837
↓ 9 callers
Method
load
This doesn't need to be async since it's only called at initialization time
src/dir.rs:642
↓ 9 callers
Function
partial_cmp
(name: &'a Q)
src/dir.rs:809
↓ 8 callers
Method
create_dir
Create and return a new subdirectory of this [`Dir`].
src/dir.rs:214
↓ 7 callers
Method
is_deleted
(&self)
src/file.rs:144
↓ 7 callers
Method
is_pending
(&self)
src/file.rs:152
↓ 7 callers
Method
lock
(&self)
src/cache.rs:55
↓ 7 callers
Method
try_write_owned
Lock this file for writing synchronously if possible, otherwise return an error.
src/file.rs:504
↓ 7 callers
Method
write
Lock this file for writing.
src/file.rs:416
↓ 6 callers
Method
len
Return the number of entries in this [`Dir`].
src/dir.rs:310
↓ 5 callers
Method
get_dir
Get the subdirectory with the given `name` from this [`Dir`], if present. Also returns `None` if the entry at `name` is a file.
src/dir.rs:282
↓ 5 callers
Method
path
Borrow the [`Path`] of this [`Dir`].
src/dir.rs:204
↓ 4 callers
Method
check
(&self, state: MutexGuard<State<FE>>)
src/cache.rs:48
↓ 4 callers
Method
contains
Return `true` if this [`Dir`] has an entry with the given `name`.
src/dir.rs:209
↓ 4 callers
Function
invalid_data
(cause: E)
src/file.rs:842
↓ 4 callers
Method
upgrade
(&mut self)
src/file.rs:156
↓ 4 callers
Function
would_block
(cause: E)
src/file.rs:850
↓ 3 callers
Method
delete
(&'a mut self, name: &'a Q)
src/dir.rs:499
↓ 3 callers
Function
delete_dir
(path: &Path)
src/dir.rs:800
↓ 3 callers
Method
iter
Return an [`Iterator`] over the entries in this [`Dir`].
src/dir.rs:305
↓ 3 callers
Function
persist
TODO: use borrowed rather than owned parameters when https://github.com/rust-lang/rust/issues/100013 is resolved
src/file.rs:682
↓ 3 callers
Function
read_type_owned
( maybe_file: OwnedRwLockReadGuard<Option<F>>, )
src/file.rs:776
↓ 3 callers
Method
resize
(&self, old_size: usize, new_size: usize)
src/cache.rs:89
↓ 3 callers
Method
truncate
(&'a mut self)
src/dir.rs:566
↓ 3 callers
Method
try_write
Lock this file for writing synchronously if possible, otherwise return an error.
src/file.rs:449
↓ 2 callers
Method
copy_file_from
Create or overwrite the file at `name` by copying from `source`, without necessarily loading `source` into the cache.
src/dir.rs:465
↓ 2 callers
Method
gc
(&self)
src/cache.rs:163
↓ 2 callers
Method
is_dir
Return `true` if this [`DirEntry`] is a [`Dir`].
src/dir.rs:184
↓ 2 callers
Method
overwrite
Replace the contents of this [`FileLock`] with those of the `other` [`FileLock`], without reading from the filesystem.
src/file.rs:219
↓ 2 callers
Method
read_owned
Lock this directory for reading.
src/dir.rs:704
↓ 2 callers
Function
read_type
(maybe_file: RwLockReadGuard<Option<F>>)
src/file.rs:762
↓ 2 callers
Method
remove
(&self, path: &PathBuf, size: usize)
src/cache.rs:79
↓ 2 callers
Method
try_write
Lock this directory for writing synchronously, if possible.
src/dir.rs:732
↓ 2 callers
Method
write_owned
Lock this directory for writing.
src/dir.rs:722
↓ 2 callers
Function
write_type
(maybe_file: RwLockWriteGuard<Option<F>>)
src/file.rs:792
↓ 2 callers
Function
write_type_owned
( maybe_file: OwnedRwLockWriteGuard<Option<F>>, )
src/file.rs:808
↓ 1 callers
Method
copy_dir_from
( &'a mut self, name: String, source: &'a DirLock<FE>, )
src/dir.rs:422
↓ 1 callers
Function
delete_file
(path: &Path)
src/file.rs:825
↓ 1 callers
Method
evict
(self)
src/file.rs:597
↓ 1 callers
Method
is_empty
Return `true` if this [`Dir`] contains no entries.
src/dir.rs:300
↓ 1 callers
Method
is_file
Return `true` if this [`DirEntry`] is a file.
src/dir.rs:189
↓ 1 callers
Method
is_loaded
(&self)
src/file.rs:148
↓ 1 callers
Method
read
Lock this file for reading.
src/file.rs:278
↓ 1 callers
Method
read_owned
Lock this file for reading.
src/file.rs:327
↓ 1 callers
Function
run_example
(cache: DirLock<File>)
tests/example_smoke.rs:59
↓ 1 callers
Function
run_example
(cache: DirLock<File>)
examples/example.rs:54
↓ 1 callers
Method
save
(&self, file: &mut fs::File)
src/file.rs:119
↓ 1 callers
Method
save
(&self, file: &mut fs::File)
tests/load_overlap.rs:12
↓ 1 callers
Function
setup_tmp_dir
()
tests/example_smoke.rs:33
↓ 1 callers
Function
setup_tmp_dir
()
tests/copy_semantics.rs:31
↓ 1 callers
Function
setup_tmp_dir
()
tests/delete_recreate.rs:27
↓ 1 callers
Function
setup_tmp_dir
()
tests/type_safety.rs:30
↓ 1 callers
Function
setup_tmp_dir
()
tests/concurrency_smoke.rs:30
↓ 1 callers
Function
setup_tmp_dir
()
examples/example.rs:31
↓ 1 callers
Function
spawn_cleanup_thread
( cache: Arc<Cache<FE>>, mut rx: UnboundedReceiver<Evict>, )
src/cache.rs:189
↓ 1 callers
Method
try_read
Lock this file for reading synchronously if possible, otherwise return an error.
src/file.rs:308
↓ 1 callers
Function
unique_tmp_dir
()
src/file.rs:865
↓ 1 callers
Function
unique_tmp_dir
()
src/cache.rs:258
↓ 1 callers
Function
unique_tmp_dir
()
tests/load_overlap.rs:19
↓ 1 callers
Function
unique_tmp_file
(name: &str)
tests/stream_roundtrip.rs:9
↓ 1 callers
Method
write_owned
Lock this file for writing.
src/file.rs:469
Method
as_dir
(&self)
src/dir.rs:45
Method
as_file
(&self)
src/file.rs:43
Method
as_file
Return `Some(file_lock)` if this [`DirEntry`] is itself a file.
src/dir.rs:176
Function
cache_load_rejects_overlapping_roots
()
tests/load_overlap.rs:26
Function
concurrent_read_write_does_not_deadlock
()
tests/concurrency_smoke.rs:47
Function
copy_dir_from_preserves_tree_and_contents
()
tests/copy_semantics.rs:39
Method
create_dir_unique
Create and return a new subdirectory of this [`Dir`] with a unique name.
src/dir.rs:235
Method
create_file_unique
Create a new file in this [`Dir`] with a unique name and the given `contents`.
src/dir.rs:400
Method
delete
(&self, file_only: bool)
src/file.rs:582
Function
delete_then_recreate_file_and_dir
()
tests/delete_recreate.rs:38
Method
entries
Return an [`Iterator`] over the entries in this [`Dir`].
src/dir.rs:250
Function
example_smoke
()
tests/example_smoke.rs:116
Method
files
Return an [`Iterator`] over the file entries in this [`Dir`].
src/dir.rs:255
Method
fmt
(&self, f: &mut fmt::Formatter)
src/file.rs:637
Method
fmt
(&self, f: &mut fmt::Formatter)
src/dir.rs:609
Method
get
Get the entry with the given `name` from this [`Dir`].
src/dir.rs:275
Method
get_or_create_dir
Return a new subdirectory of this [`Dir`], creating it if it doesn't already exist.
src/dir.rs:266
Method
into_read
Lock this file for reading, without borrowing.
src/file.rs:386
Method
into_read
Lock this directory for reading, without borrowing.
src/dir.rs:692
Method
into_write
Lock this file for writing, without borrowing.
src/file.rs:529
Method
into_write
Lock this directory for writing, without borrowing.
src/dir.rs:727
Function
lfu_eviction_prefers_least_used
()
src/cache.rs:265
Method
load
(_path: &Path, file: fs::File, _metadata: std::fs::Metadata)
src/file.rs:107
Method
load
Load a filesystem directory into the cache. After loading, all interactions with files under this directory should go through a [`DirLock`] or [`File
src/cache.rs:138
Function
main
()
examples/example.rs:133
Function
name_partial_cmp_uuid
()
src/dir.rs:823
Method
names
Return an [`Iterator`] over the names of the entries in this [`Dir`].
src/dir.rs:315
Method
new
Create a new [`FileLock`].
src/file.rs:187
next →
1–100 of 126, ranked by callers