pub trait TempDirApiAsync<'vfs> {
type Vfs: VfsAsync + WriteSupportingVfsAsync;
type FuturePersistAt: Future<Output = VfsResult<(), Self::Vfs>> + Send + 'vfs;
type FutureDelete: Future<Output = VfsResult<(), Self::Vfs>> + Send + 'vfs;
// Required methods
fn path(&self) -> &<Self::Vfs as VfsCore>::Path;
fn persist_at(
self,
vfs: Pin<&'vfs Self::Vfs>,
path: <<Self::Vfs as VfsCore>::Path as PathType>::OwnedPath,
) -> Self::FuturePersistAt;
fn delete(self, vfs: Pin<&'vfs Self::Vfs>) -> Self::FutureDelete;
}Available on crate feature
async only.Expand description
An async version of the TempDirApi trait.
Required Associated Types§
Sourcetype Vfs: VfsAsync + WriteSupportingVfsAsync
type Vfs: VfsAsync + WriteSupportingVfsAsync
The associated VFS type.
Sourcetype FuturePersistAt: Future<Output = VfsResult<(), Self::Vfs>> + Send + 'vfs
type FuturePersistAt: Future<Output = VfsResult<(), Self::Vfs>> + Send + 'vfs
The future type for the persist_at method.
Sourcetype FutureDelete: Future<Output = VfsResult<(), Self::Vfs>> + Send + 'vfs
type FutureDelete: Future<Output = VfsResult<(), Self::Vfs>> + Send + 'vfs
The future type for the delete method.
Required Methods§
Sourcefn persist_at(
self,
vfs: Pin<&'vfs Self::Vfs>,
path: <<Self::Vfs as VfsCore>::Path as PathType>::OwnedPath,
) -> Self::FuturePersistAt
fn persist_at( self, vfs: Pin<&'vfs Self::Vfs>, path: <<Self::Vfs as VfsCore>::Path as PathType>::OwnedPath, ) -> Self::FuturePersistAt
Persists the temporary directory at the specified path in the VFS.
Sourcefn delete(self, vfs: Pin<&'vfs Self::Vfs>) -> Self::FutureDelete
fn delete(self, vfs: Pin<&'vfs Self::Vfs>) -> Self::FutureDelete
Deletes the temporary directory.