pub struct ComponentInstance {
pub id: String,
pub component: String,
pub recursive_reentrance: bool,
}Expand description
Component instance
Fields§
§id: StringInstance ID
component: StringReferenced component
recursive_reentrance: boolAllow recursive reentrance into this instance.
The Component Model spec traps when call_might_be_recursive detects
that a component instance is already on the call stack (Concurrency.md).
After fusion (e.g. via meld), the caller and callee share the same
instance, making cross-component calls appear reentrant even though
the original components were distinct.
When true, the AOT-generated canonical ABI entry sequence skips
the reentrancy guard for calls into this instance. This is an opt-in
extension ahead of the spec’s planned recursive effect on function
types.
Default: false (spec-compliant trapping behavior).
Trait Implementations§
Source§impl Clone for ComponentInstance
impl Clone for ComponentInstance
Source§fn clone(&self) -> ComponentInstance
fn clone(&self) -> ComponentInstance
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 moreSource§impl Debug for ComponentInstance
impl Debug for ComponentInstance
Source§impl<'de> Deserialize<'de> for ComponentInstance
impl<'de> Deserialize<'de> for ComponentInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ComponentInstance
impl RefUnwindSafe for ComponentInstance
impl Send for ComponentInstance
impl Sync for ComponentInstance
impl Unpin for ComponentInstance
impl UnsafeUnpin for ComponentInstance
impl UnwindSafe for ComponentInstance
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