MCPcopy Create free account

hub / github.com/TinyChain-Inc/freqfs / functions

Functions126 in github.com/TinyChain-Inc/freqfs

↓ 59 callersMethodclone
(&self)
src/dir.rs:158
↓ 27 callersMethodwrite
Lock this directory for writing.
src/dir.rs:717
↓ 21 callersMethodread
Lock this directory for reading.
src/dir.rs:687
↓ 16 callersMethodbump
(&self, path: &PathBuf, file_size: Option<usize>)
src/cache.rs:59
↓ 16 callersMethodget_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 callersFunctioncreate_dir
(path: &Path)
src/file.rs:741
↓ 13 callersMethodcreate_file
Create a new file in this [`Dir`] with the given `contents`.
src/dir.rs:382
↓ 12 callersMethodinsert
(&self, path: PathBuf, file: FileLock<FE>, file_size: usize)
src/cache.rs:71
↓ 12 callersMethodsync
(&mut self)
src/dir.rs:522
↓ 10 callersFunctionload
(path: &Path)
src/file.rs:648
↓ 9 callersMethodclone
(&self)
src/file.rs:175
↓ 9 callersFunctiondeleted
()
src/file.rs:837
↓ 9 callersMethodload
This doesn't need to be async since it's only called at initialization time
src/dir.rs:642
↓ 9 callersFunctionpartial_cmp
(name: &'a Q)
src/dir.rs:809
↓ 8 callersMethodcreate_dir
Create and return a new subdirectory of this [`Dir`].
src/dir.rs:214
↓ 7 callersMethodis_deleted
(&self)
src/file.rs:144
↓ 7 callersMethodis_pending
(&self)
src/file.rs:152
↓ 7 callersMethodlock
(&self)
src/cache.rs:55
↓ 7 callersMethodtry_write_owned
Lock this file for writing synchronously if possible, otherwise return an error.
src/file.rs:504
↓ 7 callersMethodwrite
Lock this file for writing.
src/file.rs:416
↓ 6 callersMethodlen
Return the number of entries in this [`Dir`].
src/dir.rs:310
↓ 5 callersMethodget_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 callersMethodpath
Borrow the [`Path`] of this [`Dir`].
src/dir.rs:204
↓ 4 callersMethodcheck
(&self, state: MutexGuard<State<FE>>)
src/cache.rs:48
↓ 4 callersMethodcontains
Return `true` if this [`Dir`] has an entry with the given `name`.
src/dir.rs:209
↓ 4 callersFunctioninvalid_data
(cause: E)
src/file.rs:842
↓ 4 callersMethodupgrade
(&mut self)
src/file.rs:156
↓ 4 callersFunctionwould_block
(cause: E)
src/file.rs:850
↓ 3 callersMethoddelete
(&'a mut self, name: &'a Q)
src/dir.rs:499
↓ 3 callersFunctiondelete_dir
(path: &Path)
src/dir.rs:800
↓ 3 callersMethoditer
Return an [`Iterator`] over the entries in this [`Dir`].
src/dir.rs:305
↓ 3 callersFunctionpersist
TODO: use borrowed rather than owned parameters when https://github.com/rust-lang/rust/issues/100013 is resolved
src/file.rs:682
↓ 3 callersFunctionread_type_owned
( maybe_file: OwnedRwLockReadGuard<Option<F>>, )
src/file.rs:776
↓ 3 callersMethodresize
(&self, old_size: usize, new_size: usize)
src/cache.rs:89
↓ 3 callersMethodtruncate
(&'a mut self)
src/dir.rs:566
↓ 3 callersMethodtry_write
Lock this file for writing synchronously if possible, otherwise return an error.
src/file.rs:449
↓ 2 callersMethodcopy_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 callersMethodgc
(&self)
src/cache.rs:163
↓ 2 callersMethodis_dir
Return `true` if this [`DirEntry`] is a [`Dir`].
src/dir.rs:184
↓ 2 callersMethodoverwrite
Replace the contents of this [`FileLock`] with those of the `other` [`FileLock`], without reading from the filesystem.
src/file.rs:219
↓ 2 callersMethodread_owned
Lock this directory for reading.
src/dir.rs:704
↓ 2 callersFunctionread_type
(maybe_file: RwLockReadGuard<Option<F>>)
src/file.rs:762
↓ 2 callersMethodremove
(&self, path: &PathBuf, size: usize)
src/cache.rs:79
↓ 2 callersMethodtry_write
Lock this directory for writing synchronously, if possible.
src/dir.rs:732
↓ 2 callersMethodwrite_owned
Lock this directory for writing.
src/dir.rs:722
↓ 2 callersFunctionwrite_type
(maybe_file: RwLockWriteGuard<Option<F>>)
src/file.rs:792
↓ 2 callersFunctionwrite_type_owned
( maybe_file: OwnedRwLockWriteGuard<Option<F>>, )
src/file.rs:808
↓ 1 callersMethodcopy_dir_from
( &'a mut self, name: String, source: &'a DirLock<FE>, )
src/dir.rs:422
↓ 1 callersFunctiondelete_file
(path: &Path)
src/file.rs:825
↓ 1 callersMethodevict
(self)
src/file.rs:597
↓ 1 callersMethodis_empty
Return `true` if this [`Dir`] contains no entries.
src/dir.rs:300
↓ 1 callersMethodis_file
Return `true` if this [`DirEntry`] is a file.
src/dir.rs:189
↓ 1 callersMethodis_loaded
(&self)
src/file.rs:148
↓ 1 callersMethodread
Lock this file for reading.
src/file.rs:278
↓ 1 callersMethodread_owned
Lock this file for reading.
src/file.rs:327
↓ 1 callersFunctionrun_example
(cache: DirLock<File>)
tests/example_smoke.rs:59
↓ 1 callersFunctionrun_example
(cache: DirLock<File>)
examples/example.rs:54
↓ 1 callersMethodsave
(&self, file: &mut fs::File)
src/file.rs:119
↓ 1 callersMethodsave
(&self, file: &mut fs::File)
tests/load_overlap.rs:12
↓ 1 callersFunctionsetup_tmp_dir
()
tests/example_smoke.rs:33
↓ 1 callersFunctionsetup_tmp_dir
()
tests/copy_semantics.rs:31
↓ 1 callersFunctionsetup_tmp_dir
()
tests/delete_recreate.rs:27
↓ 1 callersFunctionsetup_tmp_dir
()
tests/type_safety.rs:30
↓ 1 callersFunctionsetup_tmp_dir
()
tests/concurrency_smoke.rs:30
↓ 1 callersFunctionsetup_tmp_dir
()
examples/example.rs:31
↓ 1 callersFunctionspawn_cleanup_thread
( cache: Arc<Cache<FE>>, mut rx: UnboundedReceiver<Evict>, )
src/cache.rs:189
↓ 1 callersMethodtry_read
Lock this file for reading synchronously if possible, otherwise return an error.
src/file.rs:308
↓ 1 callersFunctionunique_tmp_dir
()
src/file.rs:865
↓ 1 callersFunctionunique_tmp_dir
()
src/cache.rs:258
↓ 1 callersFunctionunique_tmp_dir
()
tests/load_overlap.rs:19
↓ 1 callersFunctionunique_tmp_file
(name: &str)
tests/stream_roundtrip.rs:9
↓ 1 callersMethodwrite_owned
Lock this file for writing.
src/file.rs:469
Methodas_dir
(&self)
src/dir.rs:45
Methodas_file
(&self)
src/file.rs:43
Methodas_file
Return `Some(file_lock)` if this [`DirEntry`] is itself a file.
src/dir.rs:176
Functioncache_load_rejects_overlapping_roots
()
tests/load_overlap.rs:26
Functionconcurrent_read_write_does_not_deadlock
()
tests/concurrency_smoke.rs:47
Functioncopy_dir_from_preserves_tree_and_contents
()
tests/copy_semantics.rs:39
Methodcreate_dir_unique
Create and return a new subdirectory of this [`Dir`] with a unique name.
src/dir.rs:235
Methodcreate_file_unique
Create a new file in this [`Dir`] with a unique name and the given `contents`.
src/dir.rs:400
Methoddelete
(&self, file_only: bool)
src/file.rs:582
Functiondelete_then_recreate_file_and_dir
()
tests/delete_recreate.rs:38
Methodentries
Return an [`Iterator`] over the entries in this [`Dir`].
src/dir.rs:250
Functionexample_smoke
()
tests/example_smoke.rs:116
Methodfiles
Return an [`Iterator`] over the file entries in this [`Dir`].
src/dir.rs:255
Methodfmt
(&self, f: &mut fmt::Formatter)
src/file.rs:637
Methodfmt
(&self, f: &mut fmt::Formatter)
src/dir.rs:609
Methodget
Get the entry with the given `name` from this [`Dir`].
src/dir.rs:275
Methodget_or_create_dir
Return a new subdirectory of this [`Dir`], creating it if it doesn't already exist.
src/dir.rs:266
Methodinto_read
Lock this file for reading, without borrowing.
src/file.rs:386
Methodinto_read
Lock this directory for reading, without borrowing.
src/dir.rs:692
Methodinto_write
Lock this file for writing, without borrowing.
src/file.rs:529
Methodinto_write
Lock this directory for writing, without borrowing.
src/dir.rs:727
Functionlfu_eviction_prefers_least_used
()
src/cache.rs:265
Methodload
(_path: &Path, file: fs::File, _metadata: std::fs::Metadata)
src/file.rs:107
Methodload
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
Functionmain
()
examples/example.rs:133
Functionname_partial_cmp_uuid
()
src/dir.rs:823
Methodnames
Return an [`Iterator`] over the names of the entries in this [`Dir`].
src/dir.rs:315
Methodnew
Create a new [`FileLock`].
src/file.rs:187
next →1–100 of 126, ranked by callers