pub struct BinarySyncManager { /* private fields */ }Expand description
Binary sync manager for multiple URLs.
Implementations§
Source§impl BinarySyncManager
impl BinarySyncManager
Sourcepub fn new(
rate_limiter: Arc<ReconnectRateLimiter>,
blob_store: Arc<BlobStore>,
) -> Result<Self>
pub fn new( rate_limiter: Arc<ReconnectRateLimiter>, blob_store: Arc<BlobStore>, ) -> Result<Self>
Create a new binary sync manager.
Sourcepub async fn init_binary_sync(&self, url: &str, fullpath: &Path) -> Result<()>
pub async fn init_binary_sync(&self, url: &str, fullpath: &Path) -> Result<()>
Initialize a binary sync for a URL.
Sourcepub async fn signal_file_needs_reading(
&self,
url: &str,
fullpath: &Path,
) -> Result<()>
pub async fn signal_file_needs_reading( &self, url: &str, fullpath: &Path, ) -> Result<()>
Signal that a file needs reading and potentially uploading.
Sourcepub async fn disconnect(&self, url: &str)
pub async fn disconnect(&self, url: &str)
Disconnect a sync.
pub fn blob_store(&self) -> Arc<BlobStore>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinarySyncManager
impl !RefUnwindSafe for BinarySyncManager
impl Send for BinarySyncManager
impl Sync for BinarySyncManager
impl Unpin for BinarySyncManager
impl !UnwindSafe for BinarySyncManager
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