pub struct PluginResourceConfig {
pub max_fuel: u64,
pub max_memory_mb: usize,
pub max_http_requests_per_minute: u64,
pub max_log_messages_per_minute: u64,
pub max_execution_seconds: u64,
pub max_table_elements: u32,
}Expand description
Resource limits for plugin execution.
Fields§
§max_fuel: u64Maximum WASM fuel per invocation (default: 1,000,000,000).
max_memory_mb: usizeMaximum WASM memory in MB (default: 16).
max_http_requests_per_minute: u64Maximum HTTP requests per minute (default: 10).
max_log_messages_per_minute: u64Maximum log messages per minute (default: 100).
max_execution_seconds: u64Maximum execution wall-clock seconds (default: 30).
max_table_elements: u32Maximum WASM table elements (default: 10,000).
Trait Implementations§
Source§impl Clone for PluginResourceConfig
impl Clone for PluginResourceConfig
Source§fn clone(&self) -> PluginResourceConfig
fn clone(&self) -> PluginResourceConfig
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 PluginResourceConfig
impl Debug for PluginResourceConfig
Source§impl Default for PluginResourceConfig
impl Default for PluginResourceConfig
Source§impl<'de> Deserialize<'de> for PluginResourceConfig
impl<'de> Deserialize<'de> for PluginResourceConfig
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 PluginResourceConfig
impl RefUnwindSafe for PluginResourceConfig
impl Send for PluginResourceConfig
impl Sync for PluginResourceConfig
impl Unpin for PluginResourceConfig
impl UnsafeUnpin for PluginResourceConfig
impl UnwindSafe for PluginResourceConfig
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