pub struct WebDavProvider { /* private fields */ }Expand description
WebDAV 存储提供商
Implementations§
Source§impl WebDavProvider
impl WebDavProvider
Sourcepub async fn new(config: &AccountConfig) -> Result<Self, ProviderError>
pub async fn new(config: &AccountConfig) -> Result<Self, ProviderError>
创建新的 WebDAV 提供商
Trait Implementations§
Source§impl StorageProvider for WebDavProvider
impl StorageProvider for WebDavProvider
Source§fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<FileInfo>, SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<FileInfo>, SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
列出目录内容
Source§fn upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
local_path: &'life1 Path,
remote_path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<UploadResult, SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
local_path: &'life1 Path,
remote_path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<UploadResult, SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
上传文件
Source§fn download<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
remote_path: &'life1 str,
local_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<DownloadResult, SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn download<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
remote_path: &'life1 str,
local_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<DownloadResult, SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
下载文件
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
删除文件或目录
Source§fn mkdir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn mkdir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
创建目录
Auto Trait Implementations§
impl Freeze for WebDavProvider
impl !RefUnwindSafe for WebDavProvider
impl Send for WebDavProvider
impl Sync for WebDavProvider
impl Unpin for WebDavProvider
impl !UnwindSafe for WebDavProvider
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