pub struct Folder<'a> { /* private fields */ }Expand description
A folder on the storage.
Implementations§
Source§impl<'a> Folder<'a>
impl<'a> Folder<'a>
Sourcepub fn move_to(&self, parent: &Folder<'_>) -> Result<()>
pub fn move_to(&self, parent: &Folder<'_>) -> Result<()>
Moves the folder to the other folder.
§Errors
Returns an error if an object with the same name already exists in the other folder or if the operation has failed.
Sourcepub fn copy_to(&self, parent: &Folder<'_>) -> Result<()>
pub fn copy_to(&self, parent: &Folder<'_>) -> Result<()>
Copies the folder to the other folder.
§Errors
Returns an error if an object with the same name already exists in the other folder or if the operation has failed.
Sourcepub fn create_folder(&self, name: &str) -> Result<u32>
pub fn create_folder(&self, name: &str) -> Result<u32>
Sourcepub fn copy_file_from_host<P>(&self, path: P, kind: FileKind) -> Result<()>
pub fn copy_file_from_host<P>(&self, path: P, kind: FileKind) -> Result<()>
Sourcepub fn iter(&self) -> ObjectIter<'_> ⓘ
pub fn iter(&self) -> ObjectIter<'_> ⓘ
Retrieves an iterator over the objects of the folder.
Sourcepub fn iter_recursive(&self) -> ObjectRecursiveIter<'_> ⓘ
pub fn iter_recursive(&self) -> ObjectRecursiveIter<'_> ⓘ
Retrieves a recursive iterator over the objects of the folder.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Folder<'a>
impl<'a> RefUnwindSafe for Folder<'a>
impl<'a> !Send for Folder<'a>
impl<'a> !Sync for Folder<'a>
impl<'a> Unpin for Folder<'a>
impl<'a> UnwindSafe for Folder<'a>
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