pub trait WriteSupportingVfsAsyncExt: WriteSupportingVfsAsync {
// Provided methods
fn write_typed_async_ref_pinned<'r, 'a: 'r, T: WriteToAsyncRef<'a, Self>>(
self: Pin<&'r Self>,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
value: &'r T,
) -> T::Future<'r> { ... }
fn write_typed_async_ref<'r, 'a: 'r, T: WriteToAsyncRef<'a, Self>>(
&'r self,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
data: &'r T,
) -> T::Future<'r>
where Self: Unpin { ... }
fn write_typed_async_pinned<'a, T: WriteToAsync<'a, Self>>(
self: Pin<&'a Self>,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
value: T,
) -> T::Future { ... }
fn write_typed_async<'a, T: WriteToAsync<'a, Self>>(
&'a self,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
value: T,
) -> T::Future
where Self: Unpin { ... }
}async only.Expand description
Extension trait for WriteSupportingVfsAsync that provides additional convenience methods.
Provided Methods§
Sourcefn write_typed_async_ref_pinned<'r, 'a: 'r, T: WriteToAsyncRef<'a, Self>>(
self: Pin<&'r Self>,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
value: &'r T,
) -> T::Future<'r>
fn write_typed_async_ref_pinned<'r, 'a: 'r, T: WriteToAsyncRef<'a, Self>>( self: Pin<&'r Self>, path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>, value: &'r T, ) -> T::Future<'r>
Writes a file / directory at the specified path, using the specified data type’s
WriteToAsync implementation.
This method takes self as a pinned reference, to ensure that the VfsAsync implementation
is not moved while the write operation is in progress.
Sourcefn write_typed_async_ref<'r, 'a: 'r, T: WriteToAsyncRef<'a, Self>>(
&'r self,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
data: &'r T,
) -> T::Future<'r>where
Self: Unpin,
fn write_typed_async_ref<'r, 'a: 'r, T: WriteToAsyncRef<'a, Self>>(
&'r self,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
data: &'r T,
) -> T::Future<'r>where
Self: Unpin,
Writes a file / directory at the specified path, using the specified data type’s
WriteToAsync implementation.
This method takes self as a regular reference, and pins it internally.
Sourcefn write_typed_async_pinned<'a, T: WriteToAsync<'a, Self>>(
self: Pin<&'a Self>,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
value: T,
) -> T::Future
fn write_typed_async_pinned<'a, T: WriteToAsync<'a, Self>>( self: Pin<&'a Self>, path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>, value: T, ) -> T::Future
Writes a file / directory at the specified path, using the specified data type’s
WriteToAsync implementation.
This method takes self as a pinned reference, to ensure that the VfsAsync implementation
is not moved while the write operation is in progress.
Sourcefn write_typed_async<'a, T: WriteToAsync<'a, Self>>(
&'a self,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
value: T,
) -> T::Futurewhere
Self: Unpin,
fn write_typed_async<'a, T: WriteToAsync<'a, Self>>(
&'a self,
path: impl Into<<<Self as VfsCore>::Path as PathType>::OwnedPath>,
value: T,
) -> T::Futurewhere
Self: Unpin,
Writes a file / directory at the specified path, using the specified data type’s
WriteToAsync implementation.
This method takes self as a regular reference, and pins it internally.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.