pub struct WasmGuestConfig {
pub max_memory_bytes: usize,
pub max_fuel: Option<u64>,
}Expand description
Configuration for the WASM guest executor.
§Example
use adk_code::WasmGuestConfig;
let config = WasmGuestConfig::default();
assert_eq!(config.max_memory_bytes, 64 * 1024 * 1024);Fields§
§max_memory_bytes: usizeMaximum memory in bytes the guest module may use.
max_fuel: Option<u64>Maximum fuel (instruction count) for execution, if supported.
Trait Implementations§
Source§impl Clone for WasmGuestConfig
impl Clone for WasmGuestConfig
Source§fn clone(&self) -> WasmGuestConfig
fn clone(&self) -> WasmGuestConfig
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 WasmGuestConfig
impl Debug for WasmGuestConfig
Auto Trait Implementations§
impl Freeze for WasmGuestConfig
impl RefUnwindSafe for WasmGuestConfig
impl Send for WasmGuestConfig
impl Sync for WasmGuestConfig
impl Unpin for WasmGuestConfig
impl UnsafeUnpin for WasmGuestConfig
impl UnwindSafe for WasmGuestConfig
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