pub struct Service { /* private fields */ }Implementations§
Source§impl Service
impl Service
pub fn open(config: Config) -> Result<Self, ToolError>
pub fn web_libraries_root(&self) -> &Path
pub async fn execute( &self, session_id: impl Into<String>, tool_name: impl Into<String>, arguments: Value, ) -> Result<ToolExecution, ToolError>
pub async fn release( &self, session_id: impl Into<String>, ) -> Result<usize, ToolError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Service
impl !UnwindSafe for Service
impl Freeze for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
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