pub trait BundleWriter {
// Required methods
fn id(&self) -> &'static str;
fn write(
&self,
manifest: &PackManifest,
members: &[ResolvedCapability],
) -> Result<BundleOutput>;
}Expand description
What an adapter crate implements to write its harness’s bundle format.
Required Methods§
Sourcefn write(
&self,
manifest: &PackManifest,
members: &[ResolvedCapability],
) -> Result<BundleOutput>
fn write( &self, manifest: &PackManifest, members: &[ResolvedCapability], ) -> Result<BundleOutput>
Write members of the pack described by manifest as one bundle.
§Errors
Returns an error when the pack cannot be a bundle at all, such as a
name the format does not allow. A member the format cannot hold is
returned in skipped.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".