pub struct InstanceBuilder { /* private fields */ }
Implementations§
Source§impl InstanceBuilder
impl InstanceBuilder
Sourcepub fn stdin(&mut self, stdin: impl StdinStream + 'static)
pub fn stdin(&mut self, stdin: impl StdinStream + 'static)
Sets the WASI stdin
descriptor to the given StdinStream
.
Sourcepub fn stdin_pipe(&mut self, r: impl Read + Send + Sync + Unpin + 'static)
pub fn stdin_pipe(&mut self, r: impl Read + Send + Sync + Unpin + 'static)
Sets the WASI stdin
descriptor to the given Read
er.
Sourcepub fn stdout(&mut self, stdout: impl StdoutStream + 'static)
pub fn stdout(&mut self, stdout: impl StdoutStream + 'static)
Sets the WASI stdout
descriptor to the given StdoutStream
.
Sourcepub fn stdout_pipe(&mut self, w: impl Write + Send + Sync + Unpin + 'static)
pub fn stdout_pipe(&mut self, w: impl Write + Send + Sync + Unpin + 'static)
Sets the WASI stdout
descriptor to the given Write
r.
Sourcepub fn stderr(&mut self, stderr: impl StdoutStream + 'static)
pub fn stderr(&mut self, stderr: impl StdoutStream + 'static)
Sets the WASI stderr
descriptor to the given StdoutStream
.
Sourcepub fn stderr_pipe(&mut self, w: impl Write + Send + Sync + Unpin + 'static)
pub fn stderr_pipe(&mut self, w: impl Write + Send + Sync + Unpin + 'static)
Sets the WASI stderr
descriptor to the given Write
r.
Sourcepub fn args(&mut self, args: impl IntoIterator<Item = impl AsRef<str>>)
pub fn args(&mut self, args: impl IntoIterator<Item = impl AsRef<str>>)
Appends the given strings to the WASI ‘args’.
Source§impl InstanceBuilder
impl InstanceBuilder
pub fn outbound_socket_addr_check<F, Fut>(&mut self, check: F)where
F: Fn(SocketAddr, SocketAddrUse) -> Fut + Send + Sync + Clone + 'static,
Fut: Future<Output = bool> + Send + Sync,
Trait Implementations§
Source§impl FactorInstanceBuilder for InstanceBuilder
impl FactorInstanceBuilder for InstanceBuilder
Source§type InstanceState = InstanceState
type InstanceState = InstanceState
The per instance state of the factor. Read more
Auto Trait Implementations§
impl Freeze for InstanceBuilder
impl !RefUnwindSafe for InstanceBuilder
impl Send for InstanceBuilder
impl !Sync for InstanceBuilder
impl Unpin for InstanceBuilder
impl !UnwindSafe for InstanceBuilder
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> 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 moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more