pub trait StaticVarApiImpl {
    // Required methods
    fn with_lockable_static_buffer<R, F: FnOnce(&mut LockableStaticBuffer) -> R>(
        &self,
        f: F
    ) -> R;
    fn set_external_view_target_address_handle(&self, handle: Handle);
    fn get_external_view_target_address_handle(&self) -> Handle;
}
Expand description

A raw bytes buffer stored statically:

  • in wasm as a static variable
  • in debug mode on the thread local context

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§