pub struct WasmHost {
pub customer_app: String,
pub runtime: WasmRuntimeServices,
/* private fields */
}Fields§
§customer_app: String§runtime: WasmRuntimeServicesImplementations§
Source§impl WasmHost
impl WasmHost
pub fn prepare_page_invocation( &self, execution: &RequestExecution, ) -> Result<Option<InvocationPlan>, WasmModelError>
pub fn begin_page_invocation( &self, execution: &RequestExecution, ) -> Result<Option<WasmExecutionSession>, WasmModelError>
pub fn prepare_api_invocation( &self, execution: &RequestExecution, ) -> Result<Option<InvocationPlan>, WasmModelError>
pub fn begin_api_invocation( &self, execution: &RequestExecution, ) -> Result<Option<WasmExecutionSession>, WasmModelError>
pub fn prepare_leased_job_invocation( &self, lease: &JobLease, ) -> Result<Option<InvocationPlan>, WasmModelError>
pub fn begin_leased_job_invocation( &self, lease: &JobLease, ) -> Result<Option<WasmExecutionSession>, WasmModelError>
pub fn prepare_job_invocation( &self, job_name: &str, attempt: u32, trace_id: impl Into<String>, principal: ExtensionPrincipal, ) -> Result<Option<InvocationPlan>, WasmModelError>
pub fn begin_job_invocation( &self, job_name: &str, attempt: u32, trace_id: impl Into<String>, principal: ExtensionPrincipal, ) -> Result<Option<WasmExecutionSession>, WasmModelError>
pub fn prepare_scheduled_job_invocation( &self, job_name: &str, trace_id: impl Into<String>, principal: ExtensionPrincipal, ) -> Result<Option<InvocationPlan>, WasmModelError>
pub fn begin_scheduled_job_invocation( &self, job_name: &str, trace_id: impl Into<String>, principal: ExtensionPrincipal, ) -> Result<Option<WasmExecutionSession>, WasmModelError>
pub fn prepare_webhook_invocation( &self, source: &str, event: &str, verified: bool, replay_protected: bool, trace_id: impl Into<String>, principal: ExtensionPrincipal, ) -> Result<Option<InvocationPlan>, WasmModelError>
pub fn begin_webhook_invocation( &self, source: &str, event: &str, verified: bool, replay_protected: bool, trace_id: impl Into<String>, principal: ExtensionPrincipal, ) -> Result<Option<WasmExecutionSession>, WasmModelError>
pub fn prepare_admin_widget_invocations( &self, slot: &str, execution: &RequestExecution, ) -> Result<Vec<InvocationPlan>, WasmModelError>
pub fn begin_admin_widget_invocations( &self, slot: &str, execution: &RequestExecution, ) -> Result<Vec<WasmExecutionSession>, WasmModelError>
pub fn prepare_render_hook_invocations( &self, slot: &str, execution: &RequestExecution, ) -> Result<Vec<InvocationPlan>, WasmModelError>
pub fn begin_render_hook_invocations( &self, slot: &str, execution: &RequestExecution, ) -> Result<Vec<WasmExecutionSession>, WasmModelError>
Source§impl WasmHost
impl WasmHost
pub fn webhook_observation_snapshot( &self, limit: usize, ) -> Result<WebhookObservationSnapshot, String>
pub fn compile_module( &self, bytes: &[u8], ) -> Result<CompiledWasmModule, WasmModelError>
pub fn execute_session( &self, module: &CompiledWasmModule, session: WasmExecutionSession, ) -> Result<ExecutionReceipt, WasmModelError>
pub fn execute_request_surface( &self, execution: &RequestExecution, ) -> Result<Option<ExecutionReceipt>, LiveWasmExecutionError>
pub fn execute_leased_job( &self, lease: &JobLease, ) -> Result<Option<ExecutionReceipt>, LiveWasmExecutionError>
pub fn execute_render_hook_slot( &self, slot: &str, execution: &RequestExecution, ) -> Result<Vec<ExecutionReceipt>, LiveWasmExecutionError>
pub fn execute_admin_widget_slot( &self, slot: &str, execution: &RequestExecution, ) -> Result<Vec<ExecutionReceipt>, LiveWasmExecutionError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WasmHost
impl !RefUnwindSafe for WasmHost
impl Send for WasmHost
impl Sync for WasmHost
impl Unpin for WasmHost
impl UnsafeUnpin for WasmHost
impl !UnwindSafe for WasmHost
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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