pub struct FunctionRuntimeService { /* private fields */ }Implementations§
Source§impl FunctionRuntimeService
impl FunctionRuntimeService
pub fn with_fake_provider( config: FunctionConfig, provider: Arc<FakeProvider>, ) -> Self
pub fn with_container_provider( config: FunctionConfig, provider: ContainerProvider, ) -> Self
pub fn with_default_container_provider( config: FunctionConfig, ) -> Result<Self, ProviderError>
pub fn invoker(&self) -> Arc<dyn FunctionInvoker>
pub fn provider(&self) -> &ContainerProvider
pub fn runner_state(&self, runtime: &str) -> Option<RunnerState>
pub fn force_runner_failed(&self, runtime: &str, reason: &str)
Trait Implementations§
Source§impl Lifecycle for FunctionRuntimeService
impl Lifecycle for FunctionRuntimeService
Source§fn status(&self) -> ServiceStatus
fn status(&self) -> ServiceStatus
Current status of the service.
Source§fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start service (called during CamelContext.start())
Source§fn stop<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop service (called during CamelContext.stop())
fn as_function_invoker(&self) -> Option<Arc<dyn FunctionInvoker>>
Source§fn as_metrics_collector(&self) -> Option<Arc<dyn MetricsCollector>>
fn as_metrics_collector(&self) -> Option<Arc<dyn MetricsCollector>>
Optional: expose MetricsCollector for auto-registration
Auto Trait Implementations§
impl Freeze for FunctionRuntimeService
impl !RefUnwindSafe for FunctionRuntimeService
impl Send for FunctionRuntimeService
impl Sync for FunctionRuntimeService
impl Unpin for FunctionRuntimeService
impl UnsafeUnpin for FunctionRuntimeService
impl !UnwindSafe for FunctionRuntimeService
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