pub struct DebuggerComponent { /* private fields */ }Expand description
Auto-generated bindings for an instance a component which
implements the world debug-main.
This structure can be created through a number of means depending on your requirements and what you have on hand:
-
The most convenient way is to use
DebugMain::instantiatewhich only needs aStore,Component, andLinker. -
Alternatively you can create a [
DebugMainPre] ahead of time with aComponentto front-load string lookups of exports once instead of per-instantiation. This method then uses [DebugMainPre::instantiate] to create aDebugMain. -
If you’ve instantiated the instance yourself already then you can use
DebugMain::new.
These methods are all equivalent to one another and move around the tradeoff of what work is performed when.
Implementations§
Source§impl DebugMain
impl DebugMain
Sourcepub fn instantiate<_T>(
store: impl AsContextMut<Data = _T>,
component: &Component,
linker: &Linker<_T>,
) -> Result<DebugMain>
pub fn instantiate<_T>( store: impl AsContextMut<Data = _T>, component: &Component, linker: &Linker<_T>, ) -> Result<DebugMain>
Convenience wrapper around [DebugMainPre::new] and
[DebugMainPre::instantiate].
Sourcepub fn new(store: impl AsContextMut, instance: &Instance) -> Result<DebugMain>
pub fn new(store: impl AsContextMut, instance: &Instance) -> Result<DebugMain>
Convenience wrapper around [DebugMainIndices::new] and
[DebugMainIndices::load].
Sourcepub async fn instantiate_async<_T>(
store: impl AsContextMut<Data = _T>,
component: &Component,
linker: &Linker<_T>,
) -> Result<DebugMain>where
_T: Send,
pub async fn instantiate_async<_T>(
store: impl AsContextMut<Data = _T>,
component: &Component,
linker: &Linker<_T>,
) -> Result<DebugMain>where
_T: Send,
Convenience wrapper around [DebugMainPre::new] and
[DebugMainPre::instantiate_async].
pub fn add_to_linker_imports<T, D>( linker: &mut Linker<T>, host_getter: fn(&mut T) -> D::Data<'_>, ) -> Result<()>
pub fn add_to_linker<T, D>(
linker: &mut Linker<T>,
host_getter: fn(&mut T) -> D::Data<'_>,
) -> Result<()>where
D: HostWithStore + HostWithStore + DebugMainImportsWithStore + Send,
for<'a> D::Data<'a>: Host + Host + DebugMainImports + Send,
T: 'static + Send,
pub fn bytecodealliance_wasmtime_debugger(&self) -> &Guest
Auto Trait Implementations§
impl Freeze for DebugMain
impl RefUnwindSafe for DebugMain
impl Send for DebugMain
impl Sync for DebugMain
impl Unpin for DebugMain
impl UnsafeUnpin for DebugMain
impl UnwindSafe for DebugMain
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
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,
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,
self file descriptor. Read more