pub struct RuntimeService { /* private fields */ }Implementations§
Source§impl RuntimeService
impl RuntimeService
pub async fn new(settings: Settings) -> AppResult<Self>
pub fn settings(&self) -> Arc<Settings>
pub fn repo(&self) -> &Repository
pub fn capabilities(&self) -> Arc<RuntimeCapabilities>
pub async fn submit_task( &self, request: SubmitTaskRequest, ) -> AppResult<SubmitTaskResponse>
pub async fn get_task_status( &self, task_id: &str, ) -> AppResult<TaskStatusResponse>
pub async fn get_events(&self, task_id: &str) -> AppResult<Vec<EventRecord>>
pub async fn kill_task(&self, task_id: &str) -> AppResult<TaskStatusResponse>
pub async fn ready(&self) -> AppResult<()>
pub async fn metrics(&self) -> impl IntoResponse
pub async fn runtime_info(&self) -> RuntimeInfoResponse
pub async fn runtime_capabilities(&self) -> RuntimeCapabilities
pub async fn runtime_config(&self) -> RuntimeConfigResponse
pub async fn runtime_resources(&self) -> AppResult<RuntimeResourcesResponse>
pub fn start_background_loops(&self)
pub async fn recover(&self) -> AppResult<()>
Trait Implementations§
Source§impl Clone for RuntimeService
impl Clone for RuntimeService
Source§fn clone(&self) -> RuntimeService
fn clone(&self) -> RuntimeService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeService
impl RefUnwindSafe for RuntimeService
impl Send for RuntimeService
impl Sync for RuntimeService
impl Unpin for RuntimeService
impl UnsafeUnpin for RuntimeService
impl UnwindSafe for RuntimeService
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