pub struct FileChunker { /* private fields */ }Expand description
Multi-device sync manager (temporarily disabled) File chunking for large media
Implementations§
Source§impl FileChunker
impl FileChunker
Sourcepub async fn store_file(
&self,
storage: &mut StorageManager,
file_id: &str,
data: &[u8],
metadata: FileMetadata,
) -> Result<(), StorageError>
pub async fn store_file( &self, storage: &mut StorageManager, file_id: &str, data: &[u8], metadata: FileMetadata, ) -> Result<(), StorageError>
Store chunked file
Sourcepub async fn get_file(
&self,
storage: &StorageManager,
file_id: &str,
) -> Result<Vec<u8>, StorageError>
pub async fn get_file( &self, storage: &StorageManager, file_id: &str, ) -> Result<Vec<u8>, StorageError>
Retrieve chunked file
Auto Trait Implementations§
impl Freeze for FileChunker
impl RefUnwindSafe for FileChunker
impl Send for FileChunker
impl Sync for FileChunker
impl Unpin for FileChunker
impl UnwindSafe for FileChunker
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