pub struct ComponentDecl {
pub index: u32,
pub name: String,
pub code_hash: [u8; 32],
pub code_offset: u64,
pub code_size: u64,
pub wit_type: WitTypeId,
pub entry_point: String,
pub dependencies: Vec<u32>,
}Expand description
Component declaration within an RVF package.
Fields§
§index: u32Component index (0 = root component).
name: StringComponent name (for debugging).
code_hash: [u8; 32]SHA-256 hash of the WASM component code.
code_offset: u64Offset in the RVF package to the WASM code.
code_size: u64Size of the WASM code in bytes.
wit_type: WitTypeIdWIT type ID for the component’s interface.
entry_point: StringEntry point function name.
dependencies: Vec<u32>Dependencies (indices of components this depends on).
Implementations§
Source§impl ComponentDecl
impl ComponentDecl
Trait Implementations§
Source§impl Clone for ComponentDecl
impl Clone for ComponentDecl
Source§fn clone(&self) -> ComponentDecl
fn clone(&self) -> ComponentDecl
Returns a duplicate of the value. Read more
1.0.0 · 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 ComponentDecl
impl RefUnwindSafe for ComponentDecl
impl Send for ComponentDecl
impl Sync for ComponentDecl
impl Unpin for ComponentDecl
impl UnsafeUnpin for ComponentDecl
impl UnwindSafe for ComponentDecl
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