pub trait FromRefForWriterAsync<'a, Vfs: WriteSupportingVfsAsync + ?Sized + 'a> {
type Inner: ?Sized;
type Wr: WriteToAsync<'a, Vfs> + 'a;
// Required method
fn from_ref_for_writer_async(value: &'a Self::Inner) -> Self::Wr;
}Available on crate feature
async only.Expand description
Async equivalent of FromRefForWriter.
Required Associated Types§
Sourcetype Wr: WriteToAsync<'a, Vfs> + 'a
type Wr: WriteToAsync<'a, Vfs> + 'a
The reference type to cast to.
Required Methods§
Sourcefn from_ref_for_writer_async(value: &'a Self::Inner) -> Self::Wr
fn from_ref_for_writer_async(value: &'a Self::Inner) -> Self::Wr
Casts the reference to the inner type to a WriteToAsync
reference type.
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.
Implementors§
Source§impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for CleanDir<T>where
T: WriteToAsyncRef<'a, Vfs> + Send + Sync + 'static,
for<'f> <Vfs as VfsAsync>::ExistsFuture<'f>: Future<Output = VfsResult<bool, Vfs>> + Unpin + 'f,
for<'f> <Vfs as WriteSupportingVfsAsync>::RemoveDirAllFuture<'f>: Future<Output = VfsResult<(), Vfs>> + Unpin + 'f,
impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for CleanDir<T>where
T: WriteToAsyncRef<'a, Vfs> + Send + Sync + 'static,
for<'f> <Vfs as VfsAsync>::ExistsFuture<'f>: Future<Output = VfsResult<bool, Vfs>> + Unpin + 'f,
for<'f> <Vfs as WriteSupportingVfsAsync>::RemoveDirAllFuture<'f>: Future<Output = VfsResult<(), Vfs>> + Unpin + 'f,
Source§impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Json<T>
Available on crate feature json only.
impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Json<T>
Available on crate feature
json only.Source§impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for JsonPretty<T>
Available on crate feature json only.
impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for JsonPretty<T>
Available on crate feature
json only.Source§impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Ron<T>
Available on crate feature ron only.
impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Ron<T>
Available on crate feature
ron only.Source§impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for RonPretty<T>
Available on crate feature ron only.
impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for RonPretty<T>
Available on crate feature
ron only.Source§impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Toml<T>
Available on crate feature toml only.
impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Toml<T>
Available on crate feature
toml only.Source§impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Yaml<T>
Available on crate feature yaml only.
impl<'a, T, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for Yaml<T>
Available on crate feature
yaml only.