pub struct LoadedExtension {
pub id: ExtensionId,
pub describe: Arc<DescribeJson>,
pub kind: ExtensionKind,
pub source_dir: PathBuf,
pub component: Component,
pub pool: InstancePool,
pub health: ExtensionHealth,
}Fields§
§id: ExtensionId§describe: Arc<DescribeJson>§kind: ExtensionKind§source_dir: PathBuf§component: Component§pool: InstancePool§health: ExtensionHealthImplementations§
Source§impl LoadedExtension
impl LoadedExtension
pub fn load_from_dir(engine: &Engine, source_dir: &Path) -> Result<Self>
Source§impl LoadedExtension
impl LoadedExtension
Sourcepub fn build_store_and_instance(
&self,
engine: &Engine,
host_overrides: HostOverrides,
ctx: &HostCallContext,
) -> Result<(Store<HostState>, Instance)>
pub fn build_store_and_instance( &self, engine: &Engine, host_overrides: HostOverrides, ctx: &HostCallContext, ) -> Result<(Store<HostState>, Instance)>
Build a fresh wasmtime Store with HostState and instantiate the component.
Each call creates a new instance (no pooling yet — pooling is future work).
Auto Trait Implementations§
impl !Freeze for LoadedExtension
impl !RefUnwindSafe for LoadedExtension
impl !UnwindSafe for LoadedExtension
impl Send for LoadedExtension
impl Sync for LoadedExtension
impl Unpin for LoadedExtension
impl UnsafeUnpin for LoadedExtension
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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