pub struct RuntimeBuild;
Expand description
Runtime build utilities
Implementations§
Source§
impl
RuntimeBuild
impl RuntimeBuild
Source
pub async fn
build_host( transport:
Transport, _wasm_runtime:
Arc<WASMRuntime>, host_config:
HostConfig, ) ->
Result<ExtensionHostImpl>
pub async fn build_host( transport: Transport, _wasm_runtime: Arc<WASMRuntime>, host_config: HostConfig, ) -> Result<ExtensionHostImpl>
Build a Groove extension host with the specified configuration
Source
pub async fn
build_host_with_defaults( transport:
Transport, wasi:
bool, memory_limit_mb:
u64, max_execution_time_ms:
u64, ) ->
Result<ExtensionHostImpl>
pub async fn build_host_with_defaults( transport: Transport, wasi: bool, memory_limit_mb: u64, max_execution_time_ms: u64, ) -> Result<ExtensionHostImpl>
Build a Grove extension host with default WASM configuration
Source
pub async fn
build_minimal_host( transport:
Transport, ) ->
Result<ExtensionHostImpl>
pub async fn build_minimal_host( transport: Transport, ) -> Result<ExtensionHostImpl>
Build a minimal extension host for testing
Source
pub fn
validate_config(config: &HostConfig) ->
Result<()>
pub fn validate_config(config: &HostConfig) -> Result<()>
Validate build configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeBuild
impl RefUnwindSafe for RuntimeBuild
impl Send for RuntimeBuild
impl Sync for RuntimeBuild
impl Unpin for RuntimeBuild
impl UnsafeUnpin for RuntimeBuild
impl UnwindSafe for RuntimeBuild
Blanket Implementations§
Source§
impl<T>
BorrowMut<T> for T
where T: ?Sized,
impl<T>
BorrowMut<T> for T
where 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> Instrument for T
impl<T> Instrument for T
§
fn
instrument(self, span: Span) ->
Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§
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 more
Source§
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
Source§
impl<T>
IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§
fn
into_request(self) ->
Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in
a tonic::Request