pub struct NextcloudFs { /* private fields */ }Expand description
The nextcloud FileSystem, accessed with the dav protocol
Implementations§
Source§impl NextcloudFs
impl NextcloudFs
Trait Implementations§
Source§impl Debug for NextcloudFs
impl Debug for NextcloudFs
Source§impl FSBackend for NextcloudFs
impl FSBackend for NextcloudFs
Source§type SyncInfo = NextcloudSyncInfo
type SyncInfo = NextcloudSyncInfo
Type used to detect updates on nodes of this filesystem. See
IsModified.Source§type IoError = NextcloudFsError
type IoError = NextcloudFsError
Errors returned by this FileSystem type
Source§type CreationInfo = NextcloudFsCreationInfo
type CreationInfo = NextcloudFsCreationInfo
Info needed to create a new filesystem of this type (url, login,…)
Source§type Description = NextcloudFsDescription
type Description = NextcloudFsDescription
A unique description of a particular filesystem instance
Source§async fn validate(info: &Self::CreationInfo) -> Result<(), Self::IoError>
async fn validate(info: &Self::CreationInfo) -> Result<(), Self::IoError>
Checks if the creation info can be used to instantiate a concrete FS Read more
Source§fn description(&self) -> Self::Description
fn description(&self) -> Self::Description
Returns a description of this filesystem instance. Read more
Source§async fn get_sync_info(
&self,
path: &VirtualPath,
) -> Result<Self::SyncInfo, Self::IoError>
async fn get_sync_info( &self, path: &VirtualPath, ) -> Result<Self::SyncInfo, Self::IoError>
Returns updated
SyncInfo for a specific nodeSource§async fn load_virtual(&self) -> Result<Vfs<Self::SyncInfo>, Self::IoError>
async fn load_virtual(&self) -> Result<Vfs<Self::SyncInfo>, Self::IoError>
Loads a virtual FS from the concrete one, by parsing its structure
Source§async fn read_file(
&self,
path: &VirtualPath,
) -> Result<impl Stream<Item = Result<Bytes, Self::IoError>> + 'static, Self::IoError>
async fn read_file( &self, path: &VirtualPath, ) -> Result<impl Stream<Item = Result<Bytes, Self::IoError>> + 'static, Self::IoError>
Opens and read a file on the concrete filesystem
Source§async fn write_file<Data: TryStream + Send + 'static>(
&self,
path: &VirtualPath,
data: Data,
) -> Result<Self::SyncInfo, Self::IoError>
async fn write_file<Data: TryStream + Send + 'static>( &self, path: &VirtualPath, data: Data, ) -> Result<Self::SyncInfo, Self::IoError>
Writes a file on the concrete filesystem
Source§async fn rm(&self, path: &VirtualPath) -> Result<(), Self::IoError>
async fn rm(&self, path: &VirtualPath) -> Result<(), Self::IoError>
Removes a file on the concrete filesystem
Source§impl TryFrom<NextcloudFsCreationInfo> for NextcloudFs
impl TryFrom<NextcloudFsCreationInfo> for NextcloudFs
Auto Trait Implementations§
impl Freeze for NextcloudFs
impl !RefUnwindSafe for NextcloudFs
impl Send for NextcloudFs
impl Sync for NextcloudFs
impl Unpin for NextcloudFs
impl !UnwindSafe for NextcloudFs
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