Struct wick_config::config::WasmComponentImplementation
source · pub struct WasmComponentImplementation { /* private fields */ }Expand description
The internal representation of a Wick manifest.
Implementations§
source§impl WasmComponentImplementation
impl WasmComponentImplementation
pub fn reference(&self) -> &AssetReference
pub fn set_reference<T: Into<AssetReference>>(&mut self, val: T) -> &mut Self
pub fn reference_mut(&mut self) -> &mut AssetReference
pub fn config(&self) -> &[Field]
pub fn set_config<T: Into<Field>>( &mut self, val: impl IntoIterator<Item = T> ) -> &mut Self
pub fn config_mut(&mut self) -> &mut Vec<Field>
pub fn volumes(&self) -> &[ExposedVolume]
pub fn set_volumes<T: Into<ExposedVolume>>( &mut self, val: impl IntoIterator<Item = T> ) -> &mut Self
pub fn volumes_mut(&mut self) -> &mut Vec<ExposedVolume>
pub fn max_packet_size(&self) -> Option<u32>
pub fn set_max_packet_size<T: Into<Option<u32>>>(&mut self, val: T) -> &mut Self
pub fn max_packet_size_mut(&mut self) -> &mut Option<u32>
Trait Implementations§
source§impl AssetManager for WasmComponentImplementation
impl AssetManager for WasmComponentImplementation
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
source§impl Clone for WasmComponentImplementation
impl Clone for WasmComponentImplementation
source§fn clone(&self) -> WasmComponentImplementation
fn clone(&self) -> WasmComponentImplementation
Returns a copy 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 ComponentConfig for WasmComponentImplementation
impl ComponentConfig for WasmComponentImplementation
type Operation = OperationDefinition
source§fn operations(&self) -> &[Self::Operation]
fn operations(&self) -> &[Self::Operation]
Get the operations defined by this configuration.
source§fn operations_mut(&mut self) -> &mut Vec<Self::Operation>
fn operations_mut(&mut self) -> &mut Vec<Self::Operation>
Get the operations defined by this configuration.
source§impl Debug for WasmComponentImplementation
impl Debug for WasmComponentImplementation
source§impl OperationSignatures for WasmComponentImplementation
impl OperationSignatures for WasmComponentImplementation
source§fn operation_signatures(&self) -> Vec<OperationSignature>
fn operation_signatures(&self) -> Vec<OperationSignature>
Get a list of operations hosted by the implementer.
source§fn get_operation_signature(&self, name: &str) -> Option<OperationSignature>
fn get_operation_signature(&self, name: &str) -> Option<OperationSignature>
Get an operation signature by name.
source§impl TryFrom<WasmComponentConfiguration> for WasmComponentImplementation
impl TryFrom<WasmComponentConfiguration> for WasmComponentImplementation
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<WasmComponentImplementation> for WasmComponentConfiguration
impl TryFrom<WasmComponentImplementation> for WasmComponentConfiguration
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for WasmComponentImplementation
impl Send for WasmComponentImplementation
impl Sync for WasmComponentImplementation
impl Unpin for WasmComponentImplementation
impl !UnwindSafe for WasmComponentImplementation
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