pub trait ReadFromAsync<'a, Vfs: VfsAsync + ?Sized + 'a>: Sized + 'a {
type Future: Future<Output = VfsResult<Self, Vfs>> + Send + Unpin + 'a
where Self: 'a;
// Required method
fn read_from_async(
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 read from disk asynchronously.
async version of ReadFrom.
Required Associated Types§
Required Methods§
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.