pub struct FileSystemStorageProvider { /* private fields */ }Expand description
Simple file system storage provider implementation.
Implementations§
Trait Implementations§
Source§impl Clone for FileSystemStorageProvider
impl Clone for FileSystemStorageProvider
Source§impl HTTExtensionBase for FileSystemStorageProvider
impl HTTExtensionBase for FileSystemStorageProvider
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get the extension description.
Source§fn capabilities(&self) -> ExtensionCapabilities
fn capabilities(&self) -> ExtensionCapabilities
Get the extension capabilities.
Source§fn initialize(&mut self) -> ExtensionResult<()>
fn initialize(&mut self) -> ExtensionResult<()>
Initialize the extension.
Source§fn shutdown(&mut self) -> ExtensionResult<()>
fn shutdown(&mut self) -> ExtensionResult<()>
Shut down the extension.
Source§fn is_compatible_with(&self, data_type: &str) -> bool
fn is_compatible_with(&self, data_type: &str) -> bool
Check if the extension is compatible with the given data type.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Convert the extension to mutable Any for downcasting.
Source§impl HTTStorageProvider for FileSystemStorageProvider
impl HTTStorageProvider for FileSystemStorageProvider
Source§fn store(&mut self, path: &str, data: &[u8]) -> ExtensionResult<()>
fn store(&mut self, path: &str, data: &[u8]) -> ExtensionResult<()>
Store data at the given path.
Source§fn list(&self, prefix: &str) -> ExtensionResult<Vec<String>>
fn list(&self, prefix: &str) -> ExtensionResult<Vec<String>>
List paths matching the given prefix.
Source§fn get_metadata(&self, path: &str) -> ExtensionResult<HashMap<String, String>>
fn get_metadata(&self, path: &str) -> ExtensionResult<HashMap<String, String>>
Get metadata for the given path.
Source§fn set_metadata(
&mut self,
path: &str,
key: &str,
value: &str,
) -> ExtensionResult<()>
fn set_metadata( &mut self, path: &str, key: &str, value: &str, ) -> ExtensionResult<()>
Set metadata for the given path.
Source§fn flush(&mut self) -> ExtensionResult<()>
fn flush(&mut self) -> ExtensionResult<()>
Flush any pending changes to durable storage.
Source§fn begin_transaction(&mut self) -> ExtensionResult<()>
fn begin_transaction(&mut self) -> ExtensionResult<()>
Begin a transaction.
Source§fn commit_transaction(&mut self) -> ExtensionResult<()>
fn commit_transaction(&mut self) -> ExtensionResult<()>
Commit a transaction.
Source§fn rollback_transaction(&mut self) -> ExtensionResult<()>
fn rollback_transaction(&mut self) -> ExtensionResult<()>
Rollback a transaction.
Source§fn supports_transactions(&self) -> bool
fn supports_transactions(&self) -> bool
Check if the provider supports transactions.
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the provider is available.
Auto Trait Implementations§
impl Freeze for FileSystemStorageProvider
impl RefUnwindSafe for FileSystemStorageProvider
impl Send for FileSystemStorageProvider
impl Sync for FileSystemStorageProvider
impl Unpin for FileSystemStorageProvider
impl UnsafeUnpin for FileSystemStorageProvider
impl UnwindSafe for FileSystemStorageProvider
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