pub struct ComponentLoadRequest {
pub manifest: ComponentManifest,
pub component_bytes: Vec<u8>,
}Expand description
Request to load an already-validated component artifact into the engine.
Callers must run crate::ComponentValidator::validate against
manifest/component_bytes first — load is not required to
re-validate the manifest, only to fail if the bytes cannot be
instantiated per the (already-validated) manifest’s declared contract.
Fields§
§manifest: ComponentManifestThe component’s manifest, already validated by
crate::ComponentValidator.
component_bytes: Vec<u8>The raw Wasm component binary.
Trait Implementations§
Source§impl Clone for ComponentLoadRequest
impl Clone for ComponentLoadRequest
Source§fn clone(&self) -> ComponentLoadRequest
fn clone(&self) -> ComponentLoadRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentLoadRequest
impl RefUnwindSafe for ComponentLoadRequest
impl Send for ComponentLoadRequest
impl Sync for ComponentLoadRequest
impl Unpin for ComponentLoadRequest
impl UnsafeUnpin for ComponentLoadRequest
impl UnwindSafe for ComponentLoadRequest
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