pub struct ComponentDependency {
pub key: ComponentDependencyKey,
pub function_dictionary: FunctionDictionary,
}Expand description
Single Wasm component: identity plus resolved export surface as a function dictionary.
Fields§
§key: ComponentDependencyKey§function_dictionary: FunctionDictionaryImplementations§
Source§impl ComponentDependency
impl ComponentDependency
pub fn from_wit_metadata( key: ComponentDependencyKey, exports: &[WitExport], ) -> Result<Self, String>
pub fn get_variants(&self) -> Vec<TypeVariant>
pub fn get_enums(&self) -> Vec<TypeEnum>
pub fn get_function_type( &self, function_name: &FunctionName, ) -> Result<(ComponentDependencyKey, FunctionType), String>
Sourcepub fn narrow_to_component(
&mut self,
_component_dependency_key: &ComponentDependencyKey,
)
pub fn narrow_to_component( &mut self, _component_dependency_key: &ComponentDependencyKey, )
No-op; kept so narrowing call sites stay stable.
pub fn function_dictionary(&self) -> Vec<&FunctionDictionary>
pub fn get_worker_instance_type( &self, worker_name: Option<Expr>, ) -> Result<InstanceCreationType, String>
Trait Implementations§
Source§impl Clone for ComponentDependency
impl Clone for ComponentDependency
Source§fn clone(&self) -> ComponentDependency
fn clone(&self) -> ComponentDependency
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 moreSource§impl Debug for ComponentDependency
impl Debug for ComponentDependency
Source§impl Default for ComponentDependency
impl Default for ComponentDependency
Source§fn default() -> ComponentDependency
fn default() -> ComponentDependency
Returns the “default value” for a type. Read more
Source§impl Hash for ComponentDependency
impl Hash for ComponentDependency
Source§impl Ord for ComponentDependency
impl Ord for ComponentDependency
Source§fn cmp(&self, other: &ComponentDependency) -> Ordering
fn cmp(&self, other: &ComponentDependency) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComponentDependency
impl PartialEq for ComponentDependency
Source§impl PartialOrd for ComponentDependency
impl PartialOrd for ComponentDependency
impl Eq for ComponentDependency
impl StructuralPartialEq for ComponentDependency
Auto Trait Implementations§
impl Freeze for ComponentDependency
impl RefUnwindSafe for ComponentDependency
impl Send for ComponentDependency
impl Sync for ComponentDependency
impl Unpin for ComponentDependency
impl UnsafeUnpin for ComponentDependency
impl UnwindSafe for ComponentDependency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.