pub struct BundleWriter;Expand description
A build-tool-facing writer for the explicit final assembly boundary.
Implementations§
Source§impl BundleWriter
impl BundleWriter
Sourcepub fn write(
root: impl AsRef<Path>,
document: &RuntimeDocument,
assets: &BTreeMap<AssetId, Vec<u8>>,
binaries: &BTreeMap<BundlePath, BinarySource>,
) -> Result<RuntimeBundle, BundleError>
pub fn write( root: impl AsRef<Path>, document: &RuntimeDocument, assets: &BTreeMap<AssetId, Vec<u8>>, binaries: &BTreeMap<BundlePath, BinarySource>, ) -> Result<RuntimeBundle, BundleError>
Write a document and the exact staged executable sources it references.
The bundle is assembled in a private sibling directory, verified completely, and only then renamed onto its final name, so the target is either absent or a complete bundle.
Auto Trait Implementations§
impl Freeze for BundleWriter
impl RefUnwindSafe for BundleWriter
impl Send for BundleWriter
impl Sync for BundleWriter
impl Unpin for BundleWriter
impl UnsafeUnpin for BundleWriter
impl UnwindSafe for BundleWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more