pub trait WasmerPackageVolume:
AbstractVolume
+ Send
+ Sync
+ 'static
+ Debug
+ IntoSuper<dyn AbstractVolume + Send + Sync + 'static> {
// Required method
fn as_directory_tree(
&self,
strictness: Strictness,
) -> Result<Directory<'_>, Error>;
// Provided method
fn as_volume(
self: Arc<Self>,
) -> Arc<dyn AbstractVolume + Send + Sync + 'static> { ... }
}
Expand description
An abstraction over concrete volumes implementation to be used in a Wasmer Package.
Required Methods§
Sourcefn as_directory_tree(
&self,
strictness: Strictness,
) -> Result<Directory<'_>, Error>
fn as_directory_tree( &self, strictness: Strictness, ) -> Result<Directory<'_>, Error>
Serialize the volume as a webc::v3::write::Directory
.