Struct marine::MarineWASIConfig
source · pub struct MarineWASIConfig {
pub envs: HashMap<String, String>,
pub preopened_files: HashSet<PathBuf>,
pub mapped_dirs: HashMap<String, PathBuf>,
}
Fields§
§envs: HashMap<String, String>
A list of environment variables available for this module.
preopened_files: HashSet<PathBuf>
A list of files available for this module. A loaded module could have access only to files from this list.
mapped_dirs: HashMap<String, PathBuf>
Mapping from a usually short to full file name.
Trait Implementations§
source§impl Clone for MarineWASIConfig
impl Clone for MarineWASIConfig
source§fn clone(&self) -> MarineWASIConfig
fn clone(&self) -> MarineWASIConfig
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 Debug for MarineWASIConfig
impl Debug for MarineWASIConfig
source§impl Default for MarineWASIConfig
impl Default for MarineWASIConfig
source§fn default() -> MarineWASIConfig
fn default() -> MarineWASIConfig
Returns the “default value” for a type. Read more
source§impl TryFrom<TomlWASIConfig> for MarineWASIConfig
impl TryFrom<TomlWASIConfig> for MarineWASIConfig
§type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for MarineWASIConfig
impl Send for MarineWASIConfig
impl Sync for MarineWASIConfig
impl Unpin for MarineWASIConfig
impl UnwindSafe for MarineWASIConfig
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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§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.