pub struct WebdavFilesystem { /* private fields */ }Expand description
WebDAV collection projection over a verified, authenticated client.
Implementations§
Source§impl WebdavFilesystem
impl WebdavFilesystem
pub fn new( client: Rc<dyn RemoteFilesystemClient>, root: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
pub fn from_client<C: RemoteFilesystemClient + 'static>( client: C, root: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
Trait Implementations§
Source§impl IFilesystem for WebdavFilesystem
impl IFilesystem for WebdavFilesystem
fn descriptor(&self) -> FilesystemDescriptor
fn stat<'a>( &'a self, context: FilesystemCallContext, path: String, ) -> FilesystemFuture<'a, FilesystemEntry>
fn read<'a>( &'a self, context: FilesystemCallContext, path: String, ) -> FilesystemFuture<'a, Vec<u8>>
fn write<'a>( &'a self, context: FilesystemCallContext, path: String, bytes: Vec<u8>, options: WriteOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn entries_page<'a>( &'a self, context: FilesystemCallContext, path: String, request: FilesystemPageRequest, ) -> FilesystemFuture<'a, FilesystemEntryPage>
fn mkdir<'a>( &'a self, context: FilesystemCallContext, path: String, options: MkdirOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn delete<'a>( &'a self, context: FilesystemCallContext, path: String, options: DeleteOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn copy<'a>( &'a self, context: FilesystemCallContext, source: String, target: String, options: CopyOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn move_entry<'a>( &'a self, context: FilesystemCallContext, source: String, target: String, options: MoveOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn close<'a>( &'a self, context: FilesystemCallContext, ) -> FilesystemFuture<'a, ()>
fn capabilities(&self) -> FilesystemCapabilities
Auto Trait Implementations§
impl !RefUnwindSafe for WebdavFilesystem
impl !Send for WebdavFilesystem
impl !Sync for WebdavFilesystem
impl !UnwindSafe for WebdavFilesystem
impl Freeze for WebdavFilesystem
impl Unpin for WebdavFilesystem
impl UnsafeUnpin for WebdavFilesystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more