pub struct Host { /* private fields */ }Expand description
The T in Store<T> for what the CLI is running.
This structures has a number of contexts used for various WASI proposals.
Note that all of them are optional meaning that they’re None by default
and enabled with various CLI flags (some CLI flags are on-by-default).
Trait Implementations§
Source§impl WasiHttpView for Host
Available on crate feature wasi-http only.
impl WasiHttpView for Host
Available on crate feature
wasi-http only.Source§fn http(&mut self) -> WasiHttpCtxView<'_>
fn http(&mut self) -> WasiHttpCtxView<'_>
Returns an instance of
WasiHttpCtxView projected out of self.Source§impl WasiHttpView for Host
Available on crate features component-model-async and wasi-http only.
impl WasiHttpView for Host
Available on crate features
component-model-async and wasi-http only.Source§fn http(&mut self) -> WasiHttpCtxView<'_>
fn http(&mut self) -> WasiHttpCtxView<'_>
Return a WasiHttpCtxView from mutable reference to self.
Source§impl WasiTlsView for Host
Available on crate features wasi-tls only.
impl WasiTlsView for Host
Available on crate features
wasi-tls only.Source§fn tls(&mut self) -> WasiTlsCtxView<'_>
fn tls(&mut self) -> WasiTlsCtxView<'_>
Return a
WasiTlsCtxView from mutable reference to self.Auto Trait Implementations§
impl !RefUnwindSafe for Host
impl !Sync for Host
impl !UnwindSafe for Host
impl Freeze for Host
impl Send for Host
impl Unpin for Host
impl UnsafeUnpin for Host
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> ErasedDestructor for Twhere
T: 'static,
Source§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