pub struct DirectoryScan { /* private fields */ }Expand description
Сканирование каталога средствами GNUnet: обходит дерево и извлекает метаданные из файлов отдельным процессом. При уничтожении прерывается.
Implementations§
Source§impl DirectoryScan
impl DirectoryScan
Sourcepub async fn start(
runtime: &GnunetRuntime,
path: impl AsRef<Path>,
options: DirectoryScanOptions,
) -> Result<Self, FsError>
pub async fn start( runtime: &GnunetRuntime, path: impl AsRef<Path>, options: DirectoryScanOptions, ) -> Result<Self, FsError>
Начинает сканирование каталога path.
Sourcepub fn progress(&self) -> Receiver<Option<DirectoryScanProgress>>
pub fn progress(&self) -> Receiver<Option<DirectoryScanProgress>>
Приёмник watch с последним сообщением о ходе сканирования.
Auto Trait Implementations§
impl !RefUnwindSafe for DirectoryScan
impl !UnwindSafe for DirectoryScan
impl Freeze for DirectoryScan
impl Send for DirectoryScan
impl Sync for DirectoryScan
impl Unpin for DirectoryScan
impl UnsafeUnpin for DirectoryScan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more