pub struct ContainerProvider { /* private fields */ }Implementations§
Source§impl ContainerProvider
impl ContainerProvider
pub fn builder() -> ContainerProviderBuilder
pub async fn cleanup_all(&self)
pub fn instance_id(&self) -> &str
pub async fn is_clean(&self) -> bool
pub async fn list_instance_containers(&self) -> Vec<String>
pub async fn spawn_runner( &self, runtime: &str, ) -> Result<RunnerHandle, ProviderError>
pub async fn shutdown_runner( &self, handle: RunnerHandle, ) -> Result<(), ProviderError>
pub async fn health_runner( &self, handle: &RunnerHandle, ) -> Result<HealthReport, ProviderError>
pub async fn register_function( &self, handle: &RunnerHandle, def: &FunctionDefinition, ) -> Result<(), ProviderError>
pub async fn unregister_function( &self, handle: &RunnerHandle, id: &FunctionId, ) -> Result<(), ProviderError>
pub async fn invoke_function( &self, handle: &RunnerHandle, function_id: &FunctionId, exchange: &Exchange, ) -> Result<ExchangePatch, ProviderError>
Trait Implementations§
Source§impl Debug for ContainerProvider
impl Debug for ContainerProvider
Auto Trait Implementations§
impl Freeze for ContainerProvider
impl !RefUnwindSafe for ContainerProvider
impl Send for ContainerProvider
impl Sync for ContainerProvider
impl Unpin for ContainerProvider
impl UnsafeUnpin for ContainerProvider
impl !UnwindSafe for ContainerProvider
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