[−][src]Struct wasi_common_lucet::WasiCtx
Fields
fds: HashMap<u32, FdEntry, RandomState>
args: Vec<CString>
env: Vec<CString>
Methods
impl WasiCtx
[src]
pub fn new<S>(args: impl Iterator<Item = S>) -> Result<WasiCtx, u16> where
S: AsRef<str>,
[src]
S: AsRef<str>,
Make a new WasiCtx
with some default settings.
-
File descriptors 0, 1, and 2 inherit stdin, stdout, and stderr from the host process.
-
Environment variables are inherited from the host process.
To override these behaviors, use WasiCtxBuilder
.
pub fn contains_fd_entry(&self, fd: u32) -> bool
[src]
pub fn get_fd_entry(
&self,
fd: u32,
rights_base: u64,
rights_inheriting: u64
) -> Result<&FdEntry, u16>
[src]
&self,
fd: u32,
rights_base: u64,
rights_inheriting: u64
) -> Result<&FdEntry, u16>
pub fn get_fd_entry_mut(
&mut self,
fd: u32,
rights_base: u64,
rights_inheriting: u64
) -> Result<&mut FdEntry, u16>
[src]
&mut self,
fd: u32,
rights_base: u64,
rights_inheriting: u64
) -> Result<&mut FdEntry, u16>
pub fn insert_fd_entry(&mut self, fe: FdEntry) -> Result<u32, u16>
[src]
Trait Implementations
Auto Trait Implementations
impl Send for WasiCtx
impl Sync for WasiCtx
impl Unpin for WasiCtx
impl UnwindSafe for WasiCtx
impl RefUnwindSafe for WasiCtx
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self