pub struct WasmIsolationPolicy {
pub max_execution_ms: u64,
pub max_module_bytes: u64,
pub max_memory_mb: u32,
pub allow_network: bool,
pub allow_fs_write: bool,
pub allow_fs_read: bool,
pub allowed_host_calls: Vec<String>,
}Fields§
§max_execution_ms: u64§max_module_bytes: u64§max_memory_mb: u32§allow_network: bool§allow_fs_write: bool§allow_fs_read: bool§allowed_host_calls: Vec<String>Trait Implementations§
Source§impl Clone for WasmIsolationPolicy
impl Clone for WasmIsolationPolicy
Source§fn clone(&self) -> WasmIsolationPolicy
fn clone(&self) -> WasmIsolationPolicy
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 WasmIsolationPolicy
impl Debug for WasmIsolationPolicy
Source§impl Default for WasmIsolationPolicy
impl Default for WasmIsolationPolicy
Source§impl<'de> Deserialize<'de> for WasmIsolationPolicy
impl<'de> Deserialize<'de> for WasmIsolationPolicy
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 WasmIsolationPolicy
impl RefUnwindSafe for WasmIsolationPolicy
impl Send for WasmIsolationPolicy
impl Sync for WasmIsolationPolicy
impl Unpin for WasmIsolationPolicy
impl UnsafeUnpin for WasmIsolationPolicy
impl UnwindSafe for WasmIsolationPolicy
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<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read more