pub trait WriteToAsync<'a, Vfs: WriteSupportingVfsAsync + ?Sized + 'a> {
type Future: Future<Output = VfsResult<(), Vfs>> + Send + Unpin + 'a;
// Required method
fn write_to_async(
self,
path: <<Vfs as VfsCore>::Path as PathType>::OwnedPath,
vfs: Pin<&'a Vfs>,
) -> Self::Future;
}Available on crate feature
async only.Expand description
Trait for types / structures that can be written to disk asynchronously.
The difference between this and WriteToAsyncRef is that this trait takes in
owned data instead of a reference.