pub struct BlobSyncClient { /* private fields */ }Expand description
Blob sync client.
Implementations§
Source§impl BlobSyncClient
impl BlobSyncClient
Sourcepub fn new(config: BlobSyncConfig) -> (Self, Receiver<BlobUpdate>)
pub fn new(config: BlobSyncConfig) -> (Self, Receiver<BlobUpdate>)
Create a new blob sync client.
Sourcepub async fn sync<F, W, D>(
&self,
_on_read: F,
on_write: W,
_on_delete: D,
) -> Result<()>
pub async fn sync<F, W, D>( &self, _on_read: F, on_write: W, _on_delete: D, ) -> Result<()>
Start syncing with the remote blob server.
pub async fn put( &self, key: &str, data: Vec<u8>, version: Option<Vec<String>>, ) -> Result<Vec<String>>
pub async fn delete(&self, key: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for BlobSyncClient
impl !RefUnwindSafe for BlobSyncClient
impl Send for BlobSyncClient
impl Sync for BlobSyncClient
impl Unpin for BlobSyncClient
impl !UnwindSafe for BlobSyncClient
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