feat: [#1932] l-s v0.5.1 原子写入保护及文档更新
This commit is contained in:
+10
-2
@@ -32,7 +32,11 @@ pub struct FileMeta {
|
||||
}
|
||||
|
||||
impl FileMeta {
|
||||
pub fn from_path_with_callback<F1, F2>(path: &Path, mut on_bytes_read: F1, mut on_iop: F2) -> Result<Self>
|
||||
pub fn from_path_with_callback<F1, F2>(
|
||||
path: &Path,
|
||||
mut on_bytes_read: F1,
|
||||
mut on_iop: F2,
|
||||
) -> Result<Self>
|
||||
where
|
||||
F1: FnMut(u64),
|
||||
F2: FnMut(),
|
||||
@@ -120,7 +124,11 @@ impl FileMeta {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn calc_xxh128_with_callback<F1, F2>(path: &Path, mut on_bytes_read: F1, mut on_iop: F2) -> Result<String>
|
||||
pub fn calc_xxh128_with_callback<F1, F2>(
|
||||
path: &Path,
|
||||
mut on_bytes_read: F1,
|
||||
mut on_iop: F2,
|
||||
) -> Result<String>
|
||||
where
|
||||
F1: FnMut(u64),
|
||||
F2: FnMut(),
|
||||
|
||||
Reference in New Issue
Block a user