pub struct FsStorageClient { /* private fields */ }Expand description
A file-system storage client using Crawlee-compatible directory layouts.
Implementations§
Trait Implementations§
Source§impl StorageClient for FsStorageClient
impl StorageClient for FsStorageClient
Source§fn purge<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn purge<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Deletes stored contents and clears the opened dataset and store caches.
The default key-value store’s INPUT.<ext> file is preserved for
Crawlee migration parity. This matters when purge_on_start uses its
default value of true. Previously opened handles remain usable, but
subsequent opens return fresh instances backed by the purged layout.
Source§fn open_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn Dataset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn Dataset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a dataset, using the default dataset when
name is None.Source§fn open_key_value_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn KeyValueStore>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_key_value_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn KeyValueStore>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a key-value store, using the default store when
name is None.Source§fn open_request_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn RequestQueue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_request_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn RequestQueue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a request queue, using the default queue when
name is None.Auto Trait Implementations§
impl !Freeze for FsStorageClient
impl !RefUnwindSafe for FsStorageClient
impl !UnwindSafe for FsStorageClient
impl Send for FsStorageClient
impl Sync for FsStorageClient
impl Unpin for FsStorageClient
impl UnsafeUnpin for FsStorageClient
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