pub struct Remote { /* private fields */ }
Implementations§
Source§impl Remote
impl Remote
pub async fn upload( &self, chunk: &str, content: Vec<u8>, ) -> Result<(), SyncError>
pub async fn upload_batch( &self, chunks: Vec<(String, Vec<u8>)>, ) -> Result<(), SyncError>
pub async fn download(&self, chunk: &str) -> Result<Vec<u8>, SyncError>
pub async fn list( &self, local_jid: i32, ) -> Result<Vec<ResponseFileRecord>, SyncError>
pub async fn poll(&self, seconds: u64) -> Result<(), SyncError>
pub async fn commit( &self, path: &str, deleted: bool, chunk_ids: &str, ) -> Result<CommitResultStatus, SyncError>
pub async fn download_batch<'a>( &'a self, chunk_ids: Vec<&'a str>, ) -> impl Stream<Item = Result<(String, Vec<u8>), SyncError>> + Unpin + 'a
Auto Trait Implementations§
impl Freeze for Remote
impl !RefUnwindSafe for Remote
impl Send for Remote
impl Sync for Remote
impl Unpin for Remote
impl !UnwindSafe for Remote
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
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more